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 / November 2005

Tip: Looking for answers? Try searching our database.

Syntax for performing arithmetic functions on merge fields.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lambs - 29 Nov 2005 00:03 GMT
Hello,

I am trying to get some merge fields to add together (they do have
underlying numeric values) in a standard letter. I am using Word 97 so I
should like to edit the field codes directly.

Say I have a field "Amount1" and "Amount2", I am just trying to add one to
the other, and then apply a numeric format switch to the result.

I'd be very grateful for any assistance that people can give.

Regards,

Lambs
macropod - 29 Nov 2005 04:32 GMT
Hi Lambs,

The syntax is:
{=«Amount1»+«Amount2»}

Assuming you've got your two mergefields, «Amount1» & «Amount2»,
side-by-side, you can create the above by selecting both fields then
pressing Ctrl-F9 to wrap another, empty, field around them. Then, simply
fill in between the field braces so that you've got the above and add
whatever numeric formatting you want. For example:
{=«Amount1»+«Amount2» \# $,0.00}
will give you a dollar & cents result, with a thousands separator, in your
merged output.

Cheers

> Hello,
>
[quoted text clipped - 10 lines]
>
> Lambs
 
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.