Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / February 2006

Tip: Looking for answers? Try searching our database.

Mailmerge calculations syntax

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Oly - 16 Feb 2006 15:21 GMT
Hi there

I'm currently looking at doing some mailmerge calculations.  I want to get
some examples of some of the syntax involved, for instance, division,
multiplication, and formatting the results properly on screen. Here's an
example:-

{={ MERGEFIELD CourseBookingCostByStatus_SumTuitionCost  \* MERGEFORMAT} /
{MERGEFIELD CourseBooking_NumberofStudents } \# "£#,##0.00 } }

For instance, i'm trying to get word to divide the total cost of a training
course by the number of students enrolled - yet when the calcuation is
performed, it shows {= 32456.4300 / 3}, instead of the actual result.

Can someone help? Just think i need some syntax examples to follow..

many thanks

Ol
Graham Mayor - 16 Feb 2006 17:07 GMT
You have to insert all the field boundaries with CTRL+F9. The syntax then is

{=({ MERGEFIELD CourseBookingCostByStatus_SumTuitionCost} / {MERGEFIELD
CourseBooking_NumberofStudents }) \# "£,0.00 } }

Note too that your data fieldnames are excessively long which will lead to
errors. Restrict fieldnames to 10 characters if possible.

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> Hi there
>
[quoted text clipped - 17 lines]
>
> Ol
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.