mail merge shows blanks as zero's

G

gareth

I am mail merging data from excel into Word.
In the excel table i have 5 number columns in each row, some of which are
blank and so shouldn't be seen in the mail merge.

However in the mail merge table they are shown as Zero's.

So for example: in my excel table if the row only has two numbers and three
blanks...... after the mail merge in Word i end up with 78978, 78457,0,0,0
listed on my letters.

I tried formating excel to TEXT to see if this would work, but it didn't.
How can i get word to leave out the zero's??
 
D

Doug Robbins

Use a formatting switch inside the mergefield with the string \# "#;-#;"

Also see "Formatting Word fields with switches" on fellow MVP Graham Mayor's
website at :

http://www.gmayor.com/formatting_word_fields.htm

--
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top