IF/AND FORMULA

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Seek assistance in the formula for IF C9=10 and A9=2 or"2D" or "3S"
should return B9 else "0000"

I wrote as
=IF(AND(A9=2,C9=10),B9,IF(AND(A9="2D",C9=10),B9,IF(AND(A9="3S",C9=10,B9))). I
get the correct number if the conditions comply,
else a "FALSE". I am unable correct my formula to incorporate "0000"

Thank you.
 
You left out the response if false
In your equation change it to
=IF(AND(A9=2,C9=10),B9,IF(AND(A9="2D",C9=10),B9,IF(AND(A9="3S",C9=10,B9,"OOOO")))

a little simple form would be
=if(and(C9=10,or(A9=2,A9="2D",A9="3S")),B9,"OOOO")
 
Thank you Duke, you formula is what I wanted.

Gary and bj, both your identical formula did not test for "C9"
bj, your correction of of my formula missed a "close bracket"
atfter the 3rd "C10".
Thanks to all of you.
 
Back
Top