Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / September 2007

Tip: Looking for answers? Try searching our database.

Evaluate IF(OR Statement

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gardfd - 20 Sep 2007 17:02 GMT
I was wondering if anyone knows a way to determine which of the "OR"
occurrences triggers the "Error" result.  Basically I want to either create a
pop-up box (which I know how to do), or change the font color to alert the
user to an input mistake.

=IF(OR($F$83>$F$84,$F$83>$G$83,$F$83>$F$89,$F$83<$E$83),"Error","")

Thanks
FG
Tom Ogilvy - 20 Sep 2007 17:34 GMT
Perhaps this will give you some ideas:

=IF(OR($F$83>$F$84,$F$83>$G$83,$F$83>$F$89,$F$83<$E$83),INDEX({">F84",">G83",">F89","<E83"},1,MATCH(TRUE,CHOOSE({1,2,3,4},$F$83>$F$84,$F$83>$G$83,$F$83>$F$89,$F$83<$E$83),0)),"")

Signature

Regards,
Tom Ogilvy

> I was wondering if anyone knows a way to determine which of the "OR"
> occurrences triggers the "Error" result.  Basically I want to either create a
[quoted text clipped - 5 lines]
> Thanks
> FG
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.