Excel>Word Mail merge transfers 16 digits when Excel shows only 3

  • Thread starter John Richmond, Watford UK
  • Start date
J

John Richmond, Watford UK

In producing reports by mailmerge from Excel into Word, an Excel cell holding
a calculated value formatted to display as 3.45 will be shown as
3.449993782999200000. Even cells carefully formatted to integers e.g 3 will
often transfer to 3.0000000000000001. Percentages such as 78% get
transferred as 0.798745300322220 Only if the values have been typed in will
the mail merge show the correct number.

This did not happen with previous versions of Word and Excel, where the
number was transferred as formatted in Excel. Is there any way of putting
this right?

Versions in use are Word 2002 SP3 and Excel 2002 SP3
 
P

Peter Jamieson

The simplest way to revert to previous behaviour is generally to check
Word|Tools|Options|General|Confirm conversion at Open, re-connect to your
Excel data source and choose the DDE option when offered. I suspect you must
have been using that in Word XP as you would probably be having the same
problems.

Alternatively, you can use "formatting switches" in the fields, e.g. use
Alt-F9 to show

{ MERGEFIELD mynumber \*Mergeformat }

and change it to

{ MERGEFIELD mynumber \#0.00 }

(you can leave the Mergeformat in there if you want)

The formats are documented in Word Help.

Peter Jamieson
"John Richmond, Watford UK" <John Richmond, Watford
(e-mail address removed)> wrote in message
news:[email protected]...
 
J

John Richmond, Watford UK

Thanks.
It worked except for % where I had to be content with an output with a
decimal point viz: .79% This came as a result of using a format of \#.00%.
The % data itself is, of course, all stored as numbers < 1 but displayed in
Excel as a %ge. I'm not changing that so will be happy with what I've got.

Many thanks

John Richmond
 
P

Peter Jamieson

You cn get the percentage using a nested mergefield, e.g.

{ ={ MERGEFIELD mypercentage }*100 \#0.0 }

Peter Jamieson
"John Richmond, Watford UK"
 
P

Peter Jamieson

Both sets of {} need to be the sort you insert using ctrl-F9. Everything
else is plain text you can type in the usual way. If you just used plain
text braces around the mergefield you will get a syntax error.

Peter Jamieson

"John Richmond, Watford UK"
 

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