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 "".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top