How do I stop a mail merge from adding zeros to the end of amounts of currency?

0

I am using an excel spreadsheet as my data source in a Word document mail merge. I have formatted the amounts in excel as currency with 2 decimal places. When I complete the merge, the amounts have approximately 13 zeros added to the end. See example below. Not sure if this is a Word problem or Excel and could really use some helping fixing this. Below is the example of what I'm getting.

The current amount due on you water bill is $94.120000000000005. The amount PAST DUE is $40.280000000000001. Please pay a MINIMUM of $40.280000000000001 by 4:30pm on Monday, October 6th, 2014, or the water supply will be turned off.

How can I get Word to stop adding the extra zeros?

Lisa

Posted 2014-09-15T21:11:59.430

Reputation: 1

Answers

3

There are a couple way to handle this.

  1. Use Dynamic Data Exchange
  2. Adjust the merge field properties in Word
  3. Format the numbers as text in Excel

Since you have already made the merge connection, it seems to me you should start by trying to adjust the field properties in Word. To do this in Word, press Alt+F9 to show the field values. It will look like this (the word "Price" is just an example, yours will be different);

{ MERGEFIELD "Price" }

You can add formatting to these numbers by adding a switch and commands as follows.

{ MERGEFIELD "Price" \# $#,###.00 }

The \# tells Word you are going to give it number formats. The $ tells Word to use a dollar sign before the number. The #,### tells Word the maximum number of digits. The .00 tells Word to use two decimal places.

Once you've made your edits, press Alt+F9 again to turn off field code editing.

Source: Answer Box: Numbers don't merge right in Word

CharlieRB

Posted 2014-09-15T21:11:59.430

Reputation: 21 303

1

Try inserting another column to the worksheet, and using the formula =FORMAT(A2,"$0.00"), A2 of course would need to be changed to the column you are using. Then use the auto-fill to copy the formula down all the rows...

I dont understand why you cant get it to look right using the format menu, there is a currency option in there, that I have never had problems with.

I understand the problem isn't in excel. as OP stated, but the new column would be formatted as text by default, stopping the problems at word. Theres a hundred ways to skin a cat of course, but fixing the prob from data end saves formatting every word doc with special chars... Sorry if I offended ya Charlie, only offering my $0.02.

Leeroy

Posted 2014-09-15T21:11:59.430

Reputation: 31

The OP stated it is formatted correctly in Excel, but not in Word after the merge. – CharlieRB – 2014-09-16T13:48:59.860

I don't agree with down-voting this just because it's not a solution @CharlieRB favours. I've used Leeroy's solution myself, and while clunky, it's no more clunky than adding a bunch of characters to each field in Word. – Kit Johnson – 2015-12-09T08:58:32.263

0

i had this problem and worked out an easier way to rectify it.

i formatted the fields the way i wanted them to look in the mail merge then i just saved the file as a csv document then saved it as an excel again afterwards

Emily

Posted 2014-09-15T21:11:59.430

Reputation: 1

0

My problem was not exactly the same issue as not all my numbers needed decimal places. I had used the same document and spreadsheet several times over a couple of years(printing labels for a library) and suddenly, (as in the next day) these strange decimals appeared. They did not show up in the excel sheet, only in the merge document. In my case, I changed the offending number column to text. I had to close and re-open the merge document then all was well. I believe it was some kind of glitch in the way Word was translating the numbers.

bevegrif

Posted 2014-09-15T21:11:59.430

Reputation: 1

0

Right click on a cell with one of those numbers in it. Select Format, select number. You will see a place to limit the trailing numbers after a decimal.

Xavierjazz

Posted 2014-09-15T21:11:59.430

Reputation: 7 993

Thanks, however, when I right click, "number" does not appear as an option. – Lisa – 2014-09-15T21:19:55.257

Sorry I forgot a step - Click on "Format" first. I will update my answer. – Xavierjazz – 2014-09-15T21:24:09.100

I see a place for decimal points but nothing for trailing zeros... – Lisa – 2014-09-15T21:27:06.377

Set that to 2 places. – Xavierjazz – 2014-09-15T21:27:49.383

Thanks. That is the format I was using, but still getting the long zeros. – Lisa – 2014-09-15T21:29:26.547

I would change it to 3, see if that takes, and if so I would close the program, reboot it and set it to 2. – Xavierjazz – 2014-09-15T21:30:48.153

As I re-read your post I see that there is an amount MORE than zero on the end. Somehoe that extra numeral is being added. That's the best I can do. :) – Xavierjazz – 2014-09-15T21:32:13.387

The extra zero is added when I change the decimal points to "3". This has been happening for years each time I write this letter and the same thing always happens. Therefore, I don't think rebooting with help. I usually just delete the extra zeros but that is time consuming when I have 30+ letters. I appreciate your help, though! Thanks! – Lisa – 2014-09-15T21:34:14.767

I see about that added numeral, odd. Maybe someone else can join in. Thanks so much for your time. – Lisa – 2014-09-15T21:35:49.050