Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Complex Look Up | Excel Discussion (Misc queries) | |||
complex color fill conditions- if statements or complex formula? | Excel Discussion (Misc queries) | |||
Complex if | Excel Worksheet Functions | |||
Complex if | Excel Worksheet Functions | |||
Complex Index Match Help (or at least complex to me) | Excel Discussion (Misc queries) |