multiple condition IF functions

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

Guest

I want to put this formula in an If statement how do I do it?

If A3 > 5 and <35 then print a 1.

I can't get it to take a multi conditional statement.

thanks
 
Some options...

=IF(AND(A3>5,A3<35,1,"")

=IF((A3>5)*(A3<35),1,"")

=(A3>5)*(A3<35)
 
Just a slight typo on the first option:

=IF(AND(A3>5,A3<35,1,"")
should be:
=IF(AND(A3>5,A3<35),1,"")

And a comment to the OP about the 3rd formula: It returns 0 if false--the other
two return "".
 
Back
Top