Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
kandy1216 kandy1216 is offline
external usenet poster
 
Posts: 8
Default How do I put a word at the end of a mail merge field?

I have a word document that I want to use with excel in a mail merge.

In one of the columns, I want to have the word years after the number data
is put in the table, ie. 6 yrs. How do I set up the mail merge excel
document so that yrs. will print after each number? Someone thought I should
use a comma after the mail merge field but then the comma showed up with the
word years. If I put yrs. in each row after the field, then yrs. shows up
when there is no record in that particular row.

Hope you can understand what I am trying to say! Thanks for any 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 How do I put a word at the end of a mail merge field?

You need to use an If...then...Else field construction in Word, something
like

{ IF { MERGEFIELD Age } "" "{ MERGEFIELD Age } yrs" "" }

You must use Ctrl+F9 to insert each pair of the field delimiters { } and you
use Alt+F9 to toggle off their display.

You can of course do a similar thing in the Excel data source by creating
another field that uses the formula

= IF( cellcontainingage "", = cellcontainingage & " yrs", "")

Note that in Excel there is a comma separating each part of the
If...then...Else construction wherease in Word, just a space is used.

--
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

"kandy1216" wrote in message
...
I have a word document that I want to use with excel in a mail merge.

In one of the columns, I want to have the word years after the number data
is put in the table, ie. 6 yrs. How do I set up the mail merge excel
document so that yrs. will print after each number? Someone thought I
should
use a comma after the mail merge field but then the comma showed up with
the
word years. If I put yrs. in each row after the field, then yrs. shows up
when there is no record in that particular row.

Hope you can understand what I am trying to say! Thanks for any help.



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod macropod is offline
external usenet poster
 
Posts: 1,002
Default How do I put a word at the end of a mail merge field?

Hi Kandy,

To do this:
.. select your «Age» mergefield and press Ctrl-F9 to wrap a new field around it, thus:
{ «Age» }
.. type '=' and '\# "0yrs;;"' in the new field, thus:
{=«Age» \# "0yrs;;"}
.. press F9 to update the field
.. run your mailmerge

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"kandy1216" wrote in message ...
I have a word document that I want to use with excel in a mail merge.

In one of the columns, I want to have the word years after the number data
is put in the table, ie. 6 yrs. How do I set up the mail merge excel
document so that yrs. will print after each number? Someone thought I should
use a comma after the mail merge field but then the comma showed up with the
word years. If I put yrs. in each row after the field, then yrs. shows up
when there is no record in that particular row.

Hope you can understand what I am trying to say! Thanks for any 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
Mail merge using calculation field in an IF field Ed Mailmerge 8 June 11th 07 01:24 PM
Word Field in Mail Merge? elfmajesty Mailmerge 4 July 19th 06 06:49 PM
Insert Merge Field problem with Word-Mail Merge from Excel documen Augusta E. Microsoft Word Help 2 June 20th 05 10:59 AM
Mail merge field different in datasource & insert a field menu Silvs Mailmerge 1 April 22nd 05 06:18 AM
Mail merge field isn't displaying all the text in a field. Can I . mojohubbard Mailmerge 3 March 28th 05 04:45 PM


All times are GMT +1. The time now is 11:29 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"