Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-03-2012, 07:06 AM
Welshie82 Welshie82 is offline Merge Field Ignoring Zeros Windows 7 32bit Merge Field Ignoring Zeros Office 2007
Advanced Beginner
Merge Field Ignoring Zeros
 
Join Date: Oct 2011
Location: Birmingham
Posts: 33
Welshie82 is on a distinguished road
Lightbulb Merge Field Ignoring Zeros


I have a merge document in MS Word 2007. The data form is in Excel. When it pulls any financial info over from the excel document it omits any zeros after the decimal point.

So for example, if I have 180.00 and 180.10 in excel it shows up in the merged word document as 180. and 180.1 instead of the correct numbers.

I've tried changing the formatting in Excel to just "text" and it's still missing the zeros in word, so I assume the problem is on the word side.

I'm using this as a merge code "{ MERGEFIELD amount \#,###.##} to try and force it to two digits after the decimal point. "amount" is the name of the field in excel.

Is there a better merge code I could be using that would show the correct figure with the zeros in?

Many thanks in advance.
Reply With Quote
  #2  
Old 05-04-2012, 01:30 AM
macropod's Avatar
macropod macropod is offline Merge Field Ignoring Zeros Windows 7 64bit Merge Field Ignoring Zeros Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Your field switch effectively says to only output non-zero decimals. If you use:
{MERGEFIELD amount \# ,0.00}
you will get all decimals to two places, and amounts of one thousand and over with thousand separators.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 05-04-2012, 01:56 AM
Welshie82 Welshie82 is offline Merge Field Ignoring Zeros Windows 7 32bit Merge Field Ignoring Zeros Office 2007
Advanced Beginner
Merge Field Ignoring Zeros
 
Join Date: Oct 2011
Location: Birmingham
Posts: 33
Welshie82 is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
Your field switch effectively says to only output non-zero decimals. If you use:
{MERGEFIELD amount \# ,0.00}
you will get all decimals to two places, and amounts of one thousand and over with thousand separators.
Wonderful, that worked! Thank you Macropod, as always.
Reply With Quote
Reply

Tags
excel 2007, merge field, word 2007

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Merge Field Ignoring Zeros Character Count in Merge Field deddy Mail Merge 3 10-20-2011 02:20 AM
Merge Field Ignoring Zeros Toggle Merge Field Code Help Please tonywatsonmail Mail Merge 2 08-11-2011 07:06 AM
Merge Field Ignoring Zeros confusion with merge and field codes BluRay Mail Merge 5 03-29-2011 01:06 AM
Merge Field Ignoring Zeros Merge field in header disappearing Medievalguy88 Word 2 01-06-2011 08:19 AM
Mail merge Field Code Manipulation macjnr Mail Merge 0 09-10-2009 11:37 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:38 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft