Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word Merge with Excel Data Source

Status
Not open for further replies.

Katy

Technical User
Apr 26, 2001
39
CA
This is a recent occurrence, since adding XP SP2 and Office SP3. The excel data source is adding a zero (0) value to an empty cell, cell format is text only.

This doesn't show up on the excel spreadsheet itself, but when selecting the data source from the Merge wizard. And it is inconsistent. Other empty cells remain empty in other fields, same cell format - text only.

Does anyone have a solution to this problem? Thanks.

Kate

 
Hi Kate,

You could overcome this with an IF test for your MERGEFIELD:
{IF{MERGEFIELD Data}= 0 "" {MERGEFIELD Data}}
or, if you're dealing with purely numeric data, a numeric picture switch in your MERGEFIELD will do. For example:
{MERGEFIELD Data \# 0;-0;}
or
{MERGEFIELD Data \# $,0.00;-$,0.00;}
This form of numeric pictire switch suppresses 0 values.

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top