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 2004

Tip: Looking for answers? Try searching our database.

Empty cell in Excel results in a "0"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alex Leibovici - 17 Jun 2004 18:53 GMT
Office XP SP3
Windows 2000 SP4

When doing a merge from an Excel sheet, empty cells generate a "0" in
the merge, instead of remaining empty. Tried to define the cells as
text (instead of "General" or "Number") - same result.

Doesn't happen on a machine with Office XP SP2 and Windows 2000 SP3,
where the merge fields remain empty !!!

Any ideas where I should look ?

TIA

Alax
macropod - 18 Jun 2004 11:35 GMT
Hi Alex,

If the mergefield is numeric, you could control this by adding a numeric
picture switch to the field. For example,
\# $,0.00;($,0.00);
so that your field looks something like:
{MERGEFIELD ExcelData \# $,0.00;($,0.00);}
The string after the first semicolon tells the field how to format negative
values and the string after the last semicolon tells the field how to format
0s. In this case, there's nothing after the last semi-colon, so that tells
Word not to display 0s.

Alternatively, if you're merging text, you could control the output via an
IF test. For example:
{IF{MERGEFIELD ExcelData}= 0 "" {MERGEFIELD ExcelData}}

For more information, see:
http://www.wopr.com/cgi-bin/w3t/showflat.pl?Cat=&Board=wrd&Number=365442
(url all one line)

Cheers

> Office XP SP3
> Windows 2000 SP4
[quoted text clipped - 11 lines]
>
> Alax
Cindy M  -WordMVP- - 18 Jun 2004 17:47 GMT
Hi Alex,

> Office XP SP3
> Windows 2000 SP4
>  
> When doing a merge from an Excel sheet, empty cells generate a "0" in
> the merge, instead of remaining empty. Tried to define the cells as
> text (instead of "General" or "Number") - same result.

See my reply from today in this message thread: Merging from Access

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)
Alex Leibovici - 23 Jun 2004 12:54 GMT
Thanks. All suggestions did work

Thanks again !

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