Mail Merge

traff1982

Board Regular
Joined
May 21, 2007
Messages
62
Hi,

I have merged data from an excel spreadsheet to a word document but when the figures are put into the document they are not quite correct.
E.g. the figure in Excel is 1100.92 but when merged the figure will be 1100.9200000001. I have checked the spreadsheet and have used the =Round and =Roundup function but this does not seem to help.

Any ideas on what is happening would be appreciated.

Cheers

Marc
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
If you Right Click in the field in the document, before merging. Then choose Toggle Field Codes, try adding this: \###.00 just after your field name.

{MERGEFIELD "YourField"\###.00 }
 
Upvote 0
Hi traff1982,

While
Code:
{MERGEFIELD "YourField"\###.00 }
will work, you'll get an extra empty space before any value that only has a single digit before the decimal point, and two blanks instead of a leading 0 for values less than 1. If you use
Code:
{MERGEFIELD "YourField"\# ,0.00 }
, you'll get as many digits as needed before the decimal point, including leading 0s for values less than 1, and a thousands separator for values of 1,000 or more.

Cheers
 
Upvote 0

Forum statistics

Threads
1,225,356
Messages
6,184,467
Members
453,235
Latest member
dirtisbrown17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top