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 / June 2007

Tip: Looking for answers? Try searching our database.

Names and address list in  Excel-mail merge to Word for labels

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
djackola - 05 Jun 2007 15:53 GMT
I have a spreadsheet with the following column headings

Last1   First1   Last2   First2   Address          City   State   Zip
Smith   John    Jones   Mary  123 Main St  Anywhere NC  27777

I have the Block Address selected which would make the label

John Smith and Mary Jones
123 Main St
Anywhere, NC  27777

These labels as well as John and Mary Smith (when spouse has same last name)
are coming out fine.  The problem is that if any entry on my Excel list is
for John Smith ONLY, the label is coming out "The Smith Family".

How can I make it come out as John Smith on my Word label?

thanks...
Dee
Graham Mayor - 05 Jun 2007 17:06 GMT
You will not achieve the results you require with the addressblock field.
Use the individual fields - see
http://www.gmayor.com/mail_merge_labels_with_word_xp.htm

As for the spouse issue, use a conditional field
eg something along the lines of

{ IF{ Mergefield First2 } <> "" "{ IF{ Mergefield Last1 } <> { Mergefield
Last 2 } "{ Mergefield  First1} { Mergefield Last1 } and { Mergefield
First2 } { Mergefield  Last2}" "{ Mergefield First1 } and { Mergefield
First2 } and { Mergefield Last1 }"}" "{ Mergefield First1 } { Mergefield
Last1 }" }

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> I have a spreadsheet with the following column headings
>
[quoted text clipped - 16 lines]
> thanks...
> Dee
Stuart Troy - 23 Jun 2007 07:33 GMT
Hi Dee,

If you don't like the results of the block address, you could insert the
fields manually to create the address block exactly as you'd like it.

The field code formula below will accomodate the 3 name variations you
stipulated.

1. Same Surname "John & Mary Smith"

2. Different Surname "John Smith & Mary Jones"

3. Individual "John Smith"

This is the field code formula.  You need to create the braces using CTRL+F9
(you can't just copy and paste my text).

{ MERGEFIELD "First1" } { If { MERGEFIELD "Last2" }="" { MERGEFIELD
"Last1" } {

If { MERGEFIELD "Last2" }={ MERGEFIELD "Last1" } "& { MERGEFIELD "First2" }
{

MERGEFIELD "Last1" }" "{ MERGEFIELD "Last1" } & { MERGEFIELD "First2" } {

MERGEFIELD "Last2" }"} }

Here is the logic, which may help you understand the formula.

1. Insert "First1 "

2. If Last2 is blank, then insert "Last1".

3. If Last2 equals Last1 then insert "& First2 Last1"

4. Else Insert "Last1 & First2 Last2"

Hope this helps you out!

Kind regards

Stuart

Sydney, AUSTRALIA

>I have a spreadsheet with the following column headings
>
[quoted text clipped - 16 lines]
> thanks...
> Dee
 
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.