#1
|
|||
|
|||
Using COMPARE to compare more than two variables
I have a rather lengthy document which has over 50 variables. I am trying to use COMPARE to get a true/false reading. My command is as follows:
{IF { =OR({ COMPARE Price = 2},{ COMPARE Price = 3 },{ COMPARE Terms = 2 },{COMPARE Terms = 3 },{COMPARE Terms = 4 },{ COMPARE Delay = "Y"})} = 1 "true" "false" The words: Price, Terms, Delay are all responses to ASK prompts (bookmarks) Is this even possible? Can I compare more than 2 fields? |
#2
|
||||
|
||||
Hi Wyskers,
To see how to do this and a wide range of other calculations in Word, check out my Microsoft Word Field Maths Tutorial, at: http://lounge.windowssecrets.com/ind...owtopic=365442 or http://www.gmayor.com/downloads.htm#Third_party In particular, look at the latter parts of the item titled 'Testing Or Returning Text Strings With Logical Functions In Bookmarks'.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compare 4 columns & find dissimilar | kmorrin | Excel | 4 | 06-29-2011 04:38 PM |
Compare and Update Macro | AaronMoss | Excel Programming | 2 | 05-06-2011 04:54 AM |
How to compare certain items in document A & B? | networkerz | Word | 0 | 10-16-2010 09:55 AM |
Compare document | enthu | Word | 1 | 05-19-2010 10:32 PM |
compare files | rmartin8 | Word | 1 | 02-10-2009 10:27 AM |