Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / January 2007

Tip: Looking for answers? Try searching our database.

mail merge

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
maciver10@gmail.com - 11 Jan 2007 16:12 GMT
I am trying to merge information from a document from excel into a
letter document in word.  What I would like to do is have the if..then
statement read as such:

If Row 1/Column B value is "college" then insert value from Row
1/Column C.  I would like to do this for numerous different if..then
statements throughout the letter.

The only way I can figure out how to possibly do it is to do the
if..then statement in excel and merge the new column into word.  I'm
hoping to find a way to do it in Word.
Doug Robbins - Word MVP - 11 Jan 2007 18:15 GMT
Note, Row 1 is where the names of your mergefields should be entered, so I
assume that you mean Row 2/Column B

You can do it with an If...then...Else field in Word

{ IF { MERGEFIELD ColumnB } = "college" { MERGEFIELD ColumnC }  }

Replace ColumnB and ColumnC in the above with the names of the mergefields
for the data in those columns.  You must use Ctrl+F9 to insert each pair of
field delimiters { } and you use Alt+F9 to toggle off their display.

You did not say what you want inserted if the data in ColumnB is not
"college"  If there is something that you want to display in that case, it
gets entered between the }  }, leaving a space between the first } and
whatever it is that you want to appear.
Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

>I am trying to merge information from a document from excel into a
> letter document in word.  What I would like to do is have the if..then
[quoted text clipped - 7 lines]
> if..then statement in excel and merge the new column into word.  I'm
> hoping to find a way to do it in Word.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.