#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Complex If

I didn't explain that exactly right. Let me try again. If E2 is equal to the
value "Not-applicable", then it will the second condition true (that is, E2
will not be equal to "Red") and hence, being an OR test, the OR function
will evaluate to TRUE. If E2 is equal to any other value, then the first
condition will be true and, again since this is an OR test, the OR function
will evaluate to TRUE. So, no matter what is in E2, one of the two "not
equal" tests will be true and the OR function will evaluate to TRUE... this
is no value that you can put into E2 to make both of those test come out
FALSE (which is the only way the OR function can return a FALSE value).

--
Rick (MVP - Excel)



"Rick Rothstein" wrote in message
...
The OR condition, as written, will be met by any value in E2. Think about
it... any value in E2 that is not "Not-applicable" will meet the first
condition and, since this is an OR, the OR function will evaluate to TRUE.
On the other hand, if E2 does equal "Not-applicable", then the second part
of the OR condition will be true and, again, since this is an OR, the OR
function will evaluate to TRUE.

I'm kind of thinking your first expression is what you wanted, just
straighten out the parentheses as Dave and Max showed you.

--
Rick (MVP - Excel)



"PAL" wrote in message
...
I had to change it around a bit.

=IF(AND(U2="YES",OR(E2<"Not-applicable",E2<"Red")),"Yes","").

It seems to only be recognizing the U2, piece not the OR. Ideas.

"Max" wrote:

Try: =IF(AND(U2="YES",OR(E2="Not-applicable",E2="Red")),"Yes","")
It was just a parens thingy. High five? hit the YES below
--
Max
Singapore
---
"PAL" wrote:
Any ideas where I went wrong here. Can't leave the cell

=IF(AND(U2="YES",OR(E2="Not-applicable",E2="Red"),"Yes",""))


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Complex Look Up 5F80YZ Excel Discussion (Misc queries) 4 January 19th 10 03:05 PM
complex color fill conditions- if statements or complex formula? lilly8008 Excel Discussion (Misc queries) 1 December 18th 09 04:57 AM
Complex if PAL Excel Worksheet Functions 4 November 4th 09 08:04 PM
Complex if PAL Excel Worksheet Functions 9 August 7th 09 08:41 AM
Complex Index Match Help (or at least complex to me) Jennifer Reitman Excel Discussion (Misc queries) 3 August 10th 06 08:51 PM


All times are GMT +1. The time now is 09:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"