Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
kimhr kimhr is offline
external usenet poster
 
Posts: 1
Default Mail Merge Percentage some formatting correct some not

I'm mail merging from excel to word and my percentages are sometimes turning
out correct...if there was a value in the excel spreadsheet. For those
fields that did not have a value in it, I'm receiving a syntax error.

I'm using this formula to get this far:
{ ={ MERGEFIELD percent }*100 \#0% }

Help???
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Mail Merge Percentage some formatting correct some not

Try

{ IF { MERGEFIELD percent } "" { = { MERGEFIELD percent } * 100 \# 0% }
"" }

That would return nothing if there is no value in the field. If you wanted
0% to appear in the case of an empty percent field, then insert a 0% in
place of the "" before the final field delimiter.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"kimhr" wrote in message
...
I'm mail merging from excel to word and my percentages are sometimes
turning
out correct...if there was a value in the excel spreadsheet. For those
fields that did not have a value in it, I'm receiving a syntax error.

I'm using this formula to get this far:
{ ={ MERGEFIELD percent }*100 \#0% }

Help???



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
percentage mail merge Martha Mailmerge 1 November 17th 07 07:32 PM
Mail Merge Percentage Mishy Mailmerge 3 December 15th 06 05:19 PM
Merge with Percentage field looses formatting Rone Mailmerge 9 April 7th 06 06:07 AM
Mail Merge - Excel Percentage changes Beth Mailmerge 1 April 16th 05 02:54 PM
Formatting a percentage mail merge field Kylor Microsoft Word Help 5 March 18th 05 07:04 PM


All times are GMT +1. The time now is 12:40 PM.

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"