A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Using Mail Merge with Excel Data



 
 
Thread Tools Display Modes
  #1  
Old April 12th, 2010, 03:58 PM posted to microsoft.public.word.mailmerge.fields
Renegade
external usenet poster
 
Posts: 36
Default Using Mail Merge with Excel Data

In Word XP, if some of the data fields have blanks (i.e. Address 1 but
Address 2 does not include anything), how do I configure the Mail Merge
instructions to disregard the blank fields without leaving a blank line in
its place?
  #2  
Old April 12th, 2010, 06:58 PM posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
external usenet poster
 
Posts: 4,550
Default Using Mail Merge with Excel Data

Use nested IF fields that insert the data /and/ a paragraph mark if the
field is not blank, but insert nothing if the field is blank. Like this:

{ IF { MERGEFIELD field1 } ""
"{ MERGEFIELD field1 }
" "" }{ IF { MERGEFIELD field2 } ""
"{ MERGEFIELD field2 }
" "" }


Peter Jamieson

http://tips.pjmsn.me.uk

On 12/04/2010 15:58, Renegade wrote:
In Word XP, if some of the data fields have blanks (i.e. Address 1 but
Address 2 does not include anything), how do I configure the Mail Merge
instructions to disregard the blank fields without leaving a blank line in
its place?

  #3  
Old April 12th, 2010, 06:59 PM posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
external usenet poster
 
Posts: 4,550
Default Using Mail Merge with Excel Data

Use nested IF fields that insert the data /and/ a paragraph mark if the
field is not blank, but insert nothing if the field is blank. Like this:

{ IF { MERGEFIELD field1 } ""
"{ MERGEFIELD field1 }
" "" }{ IF { MERGEFIELD field2 } ""
"{ MERGEFIELD field2 }
" "" }{ IF { MERGEFIELD field3 } ""
"{ MERGEFIELD field3 }
" "" }


Peter Jamieson

http://tips.pjmsn.me.uk

On 12/04/2010 15:58, Renegade wrote:
In Word XP, if some of the data fields have blanks (i.e. Address 1 but
Address 2 does not include anything), how do I configure the Mail Merge
instructions to disregard the blank fields without leaving a blank line in
its place?

  #4  
Old April 12th, 2010, 07:00 PM posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
external usenet poster
 
Posts: 4,550
Default Using Mail Merge with Excel Data

Use nested IF fields that insert the data /and/ a paragraph mark if the
field is not blank, but insert nothing if the field is blank. Like this:

{ IF { MERGEFIELD field1 } ""
"{ MERGEFIELD field1 }
" "" }{ IF { MERGEFIELD field2 } ""
"{ MERGEFIELD field2 }
" "" }{ IF { MERGEFIELD field3 } ""
"{ MERGEFIELD field3 }
" "" }

etc. All the {} need to be the special field brace pairs that you can
insert using ctrl-F9

Peter Jamieson

http://tips.pjmsn.me.uk

On 12/04/2010 15:58, Renegade wrote:
In Word XP, if some of the data fields have blanks (i.e. Address 1 but
Address 2 does not include anything), how do I configure the Mail Merge
instructions to disregard the blank fields without leaving a blank line in
its place?

  #5  
Old April 12th, 2010, 08:30 PM posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
external usenet poster
 
Posts: 4,550
Default Using Mail Merge with Excel Data

Sorry about the repeated post!

Peter Jamieson

http://tips.pjmsn.me.uk

On 12/04/2010 15:58, Renegade wrote:
In Word XP, if some of the data fields have blanks (i.e. Address 1 but
Address 2 does not include anything), how do I configure the Mail Merge
instructions to disregard the blank fields without leaving a blank line in
its place?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:41 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.