Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
JB JB is offline
external usenet poster
 
Posts: 35
Default Can I set up a merge field to convert a numerical value into text?

I want to create a mail merge document that will take numerical data from a
spreadsheet and convert it into text, eg a value of 1 in the spreadsheet will
display as a specific phrase in word, a value of 2 will display a different
phrase, etc. Is this possible?
  #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 Can I set up a merge field to convert a numerical value into text?

That can be done using an If...then...Else... field construction

{ IF { MERGEFIELD fieldname } = 1 "Display this text because the field
contains 1" "Display this other text because the field does not contain 1" }

You can "nest" such fields if you want to test for more than just two
values.

You must use Ctrl+F9 to insert each pair of field delimiters { } - it will
not work if you enter them directly from the keyboard, and you use Alt+F9 to
toggle off their display.

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

"JB" wrote in message
...
I want to create a mail merge document that will take numerical data from a
spreadsheet and convert it into text, eg a value of 1 in the spreadsheet
will
display as a specific phrase in word, a value of 2 will display a
different
phrase, etc. Is this possible?



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
manipulating/cutting/pasting text out of a text box [email protected] Microsoft Word Help 10 July 9th 06 10:54 PM
Enter text in a field and have it appear as entered elsewhere Gregory Winters Microsoft Word Help 6 November 1st 05 02:09 AM
Next Record merge field with text boxes Hand Prints Mailmerge 2 October 27th 05 07:32 AM
HTML text in Merge Field TM360 Mailmerge 3 August 20th 05 10:41 AM
Text Form Field Ref in Footer Won't Update on Screen StarWine Microsoft Word Help 3 December 6th 04 06:17 PM


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