Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-02-2011, 02:32 PM
Wyskers Wyskers is offline Using COMPARE to compare more than two variables Windows 7 64bit Using COMPARE to compare more than two variables Office 2007
Novice
Using COMPARE to compare more than two variables
 
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 Using COMPARE to compare more than two variables Windows 7 64bit Using COMPARE to compare more than two variables Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
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
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using COMPARE to compare more than two variables 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
Using COMPARE to compare more than two variables compare files rmartin8 Word 1 02-10-2009 10:27 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:33 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft