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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
mail merge shows blanks as zero's
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?? |
#2
|
|||
|
|||
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 "gareth" wrote in message ... 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?? |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mail Merge - Parameter prompts twice... | TL | Mailmerge | 6 | June 17th, 2005 02:58 PM |
Mail merge conversion from Word to .NET code. | mutton | Mailmerge | 1 | November 17th, 2004 02:09 AM |
Word-Excel 2000 Mail Merge Failure | Jim | Mailmerge | 1 | August 12th, 2004 02:43 PM |
How to run word and pass a mail merge values and fax it to the recipient | Belinda | Mailmerge | 2 | June 13th, 2004 12:49 AM |
Zeros in empty mail merge field instead of just closing up | P. J. | Mailmerge | 2 | May 28th, 2004 04:27 PM |