A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Help! Nested If



 
 
Thread Tools Display Modes
  #1  
Old February 8th, 2008, 02:38 PM posted to microsoft.public.word.tables
Mickey
external usenet poster
 
Posts: 113
Default Help! Nested If

Hi,

I am doing a mail merge using Word 2003. In my tables, I need to evaluate
the content of a field and then insert a particular character based on its
content.

For example:
If B3 30 then enter character 74
If B3 60 then enter character 75
If B3 90 then enter character 76
Otherwise enter ---

I've tried various ways, but can't seem to get it. Any help would be
GREATLY appreciated!

Thanks!
  #2  
Old February 18th, 2008, 07:05 PM posted to microsoft.public.word.tables
Jean-Guy Marcil[_2_]
external usenet poster
 
Posts: 374
Default Help! Nested If

"Mickey" wrote:

Hi,

I am doing a mail merge using Word 2003. In my tables, I need to evaluate
the content of a field and then insert a particular character based on its
content.

For example:
If B3 30 then enter character 74
If B3 60 then enter character 75
If B3 90 then enter character 76
Otherwise enter ---

I've tried various ways, but can't seem to get it. Any help would be
GREATLY appreciated!


Nested IF fields work according to the following basic principle:

{IF Condition 1 "Result if 1 is true" "{IF Condition2 "Result if
condition 2 is true" "Result if neither 1 or 2 is true"}"}

Of course, there are a great many variations, but this is the basic
principle, which works in most cases, including yours. So, what you need is
something like:

{IF {MERGEFIELD So_and_So} 30 "74" "{IF {MERGEFIELD So_and_So} 60
"75" "{IF {MERGEFIELD So_and_So} 90 "76" "---"}"}"}
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:24 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.