Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
debbie M debbie M is offline
external usenet poster
 
Posts: 2
Default format numbers in a mail merge

In office 2007. I'm merging number fields into a word docx. In the excel
file they are formated as numbers 250,750 but in the word file they are
coming across as 250750. I would like either 250,750 or $250,750. Please
Help ASAP
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default format numbers in a mail merge

Hi debbie,

In Word, add a numeric picture switch to the mergefield. To do this:
.. select the field;
.. press Shift-F9 to reveal the field coding. It should look something like {MERGEFIELD MyData};
.. edit the field so that you get {MERGEFIELD MyData \# $,0} (or whatever other numeric format you prefer - see below);
.. position the cursor anywhere in this field and press F9 to update it;
.. run your mailmerge.

Note: The '\# 0' in the field is referred to as a numeric picture switch. Other possibilities include:
.. \# 0 for rounded whole numbers
.. \# ,0 for rounded whole numbers with a thousands separator
.. \# ,0.00 for numbers accurate to two decimal places, with a thousands separator
.. \# $,0.00;($,0.00);'-' for currency, with brackets around negative numbers and a hyphen for 0 values


--
Cheers
macropod
[Microsoft MVP - Word]


"debbie M" debbie wrote in message ...
In office 2007. I'm merging number fields into a word docx. In the excel
file they are formated as numbers 250,750 but in the word file they are
coming across as 250750. I would like either 250,750 or $250,750. Please
Help ASAP

  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default format numbers in a mail merge

Use alt-F9 to display the underlying "field codes" in your Word
Mailmerge main document.

If you are using e.g.

{ MERGEFIELD myfield }

to insert the number, delete anything in there that looks like
\*Mergeformat, and add a "numeric picture switch", so you have (e.g.)

{ MERGEFIELD myfield \#",0" }

or

{ MERGEFIELD myfield \#"$,0" }

Use Alt-F9 to toggle your field codes so they show results, and try
previewing some records or merging to a new document.


Peter Jamieson

http://tips.pjmsn.me.uk

debbie M wrote:
In office 2007. I'm merging number fields into a word docx. In the excel
file they are formated as numbers 250,750 but in the word file they are
coming across as 250750. I would like either 250,750 or $250,750. Please
Help ASAP

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I get phone numbers to format correctly in a mail merge? schroederv Mailmerge 1 July 14th 06 03:04 AM
format telephone numbers Mail Merge KimB Mailmerge 3 September 17th 05 06:17 AM
How do I format mail merge numbers? Dulrick Mailmerge 1 March 16th 05 08:18 AM
How do I format numbers as Currency via Mail Merge? SteveL67 Mailmerge 1 March 3rd 05 05:32 PM
In word how do I format numbers brought in through a mail merge jobrien Mailmerge 1 February 4th 05 11:22 PM


All times are GMT +1. The time now is 06:38 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"