Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-08-2024, 07:55 AM
Utang Utang is offline Mail Merge - Conditional Statements Windows 11 Mail Merge - Conditional Statements Office 2021
Novice
Mail Merge - Conditional Statements
 
Join Date: Jun 2023
Posts: 3
Utang is on a distinguished road
Default Mail Merge - Conditional Statements


Hi,

Is it possible in a mailmerge to set up a conditional statement where a monetary figure is quoted but would be different for each person. for example if Joe Bloggs received a car allowance, it would show in Column C of the excel data sheet as Yes or No and Column D would have a monetary value of GBPX to denote the car allowance amount.

The wording might be for example " You shall receive a car allowance of GBPX (insert figure from Column D) per month"

Michael Grant for example might also receive a car allowance but with a different amount.

Edward House would not receive a car allowance and therefore the sentence wouldn't be required at all.

Can anyone advise?

thanks in advance
Reply With Quote
  #2  
Old 03-09-2024, 05:22 AM
gmayor's Avatar
gmayor gmayor is offline Mail Merge - Conditional Statements Windows 10 Mail Merge - Conditional Statements Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,106
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

That's fairly straightforward

{IF {MERGEFIELD Allowance } = "Yes" " You shall receive a car allowance of GBP { MERGEFIELD Amount } per month." }

Replace the fieldnames with the fieldnames from your data source. All bracket pairs are inserted with CTRL+F9 or see Import and export field constructions as text
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 03-11-2024, 03:35 AM
Utang Utang is offline Mail Merge - Conditional Statements Windows 11 Mail Merge - Conditional Statements Office 2021
Novice
Mail Merge - Conditional Statements
 
Join Date: Jun 2023
Posts: 3
Utang is on a distinguished road
Default

Thank you! This is perfect!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Merge - Conditional Statements IF statements in mail merge with results displayed based on date of letter ajh19742000 Mail Merge 1 11-13-2019 01:54 PM
Mail Merge - Conditional Statements IF Statements for a several ranges of values using Mail Merge Jennifert Mail Merge 2 05-01-2019 09:40 PM
I know nothing about mail merge, but need help with conditional statements briyosa Word 1 03-27-2017 10:17 PM
Mail Merge - Conditional Statements Using multiple IF statements on a mail merge ajh19742000 Mail Merge 1 11-01-2016 06:11 PM
Mail Merge - Conditional Statements showing results of If statements in a mail merge m&co Mail Merge 3 01-06-2012 07:27 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:11 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft