funky data from xls into word

D

DanJfromOK

Using Office XP: I have an xls spreadsheet that includes a column of numbers formatted with 2 decimals. When I perform the mail merge into a Word document, the field displays "umpteen" decimals on some records, yet truncates the decimal for whole numbers. Ex: I've seen 10567.88 and 10000 and 67890.00000000001

I've found a bit of a workaround by saving the .xls as a .txt then merging, but I lose some of the formatting

I know this can't be right! Any ideas? Thanks!
 
P

Peter Jamieson

In Word, use e.g.

{ MERGEFIELD mynumber \#"0.00" }

instead of

{ MERGEFIELD mynumber }

--
Peter Jamieson - Word MVP
Word MVP web site http://word.mvps.org/

DanJfromOK said:
Using Office XP: I have an xls spreadsheet that includes a column of
numbers formatted with 2 decimals. When I perform the mail merge into a
Word document, the field displays "umpteen" decimals on some records, yet
truncates the decimal for whole numbers. Ex: I've seen 10567.88 and
10000 and 67890.000000000019
I've found a bit of a workaround by saving the .xls as a .txt then
merging, but I lose some of the formatting.
 

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