Computer Learning Zone CLZ Access Excel Word Windows

We can judge our progress by the courage of our questions and the depth of our answers, our willingness to embrace what is true rather than what feels good.

-Carl Sagan
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Microsoft Word Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
IF THEN ELSE
Symn 

16 years ago
Dear Richard

Word's mail merge is driving me up the wall.  I am trying to understand IF statements, but all the sites (including Microsoft) seem as clear as mud.  In order to understand the statements, I need to see examples, but they are very thin on the ground.

I can understand them at a basic level, but as soon as nesting starts, then it becomes a nightmare.

What I really want to know how to do is this:  If I have an Excel spreadsheet with my list of names and I want to run a mail merge, how can I get Word to input either Dear Mr XX and in the absence of a surname, put in the the person's christian name, ie Dear Mark or Dear Chris, and then if the surname and christian name are missing put in either Dear Sir or Madam or To Whom it May Concern.

If you can help me with this I would be eternally grateful and hopefully I'll start to get my head around this methodology pretty soon.

Kind regards


Symn Waters
 


Answer from Richard Rost:

Honestly, this is MUCH easier to set up in Excel and then just use the Excel field instead of trying to do IF functions in Word's mail merge. You could create a new column in Excel and then use IF to determine which to use.

Let's say you've got the person's first name in A1, you could say in B1:

=IF(A1="","Sir or Madam",A1)

That would put "Sir or Madam" in B1 if A1 is empty, otherwise, it would use A1.

You can find out more about the IF function here:

You can use the IF function to have Excel place a value in a cell based on one or more conditions or values in other cells.

See this FREE tutorial on my web site for more information on how to use the IF function:

http://www.599cd.com/tips/excel/misc/if-function-sales-tax.asp?key=BlFAlEx

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Microsoft Word Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 6/9/2026 7:33:25 AM. PLT: 1s