Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Word

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 12-02-2011, 02:32 PM
Wyskers Wyskers is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Nov 2011
Posts: 5
Wyskers is on a distinguished road
Default 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?
Reply With Quote
  #2  
Old 12-03-2011, 01:37 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 18,680
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

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
[MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


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


All times are GMT -7. The time now is 08:01 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft