Timothy Reed7 said:Hey everyone,
I need a little help with logical functions (like IF, AND, and OR) in Excel. Here is my situation: I have two different sets of conditions that need to be met. For example, either Column A >= 10 AND Column B >= 2, OR Column A >= 15 AND Column B >= 3. If one of those pairs is true, I want it to say YES, otherwise NO.
I tried typing in this formula: =IF(AND(A3>=10;B3>=2;"YES");OR(IF(AND(A3>=15;B3>=3);"YES";"NO")))
But for some reason, I keep getting an error message: #VALUE!
Thanks so much for the help,
Best,
S.
=IF(OR(AND(A1>=10; B1>=2); AND(A1>=15; B1>=3));"YES";"NO")
Just take a close look at how the parentheses are nested and how the conditions are checked.
The AND functions handle each pair separately, then the OR checks both of those results, and finally, the IF evaluates everything inside the brackets.☕