Yes/No Formula Help

J

Jeremy

I am wanting to create a formula to where if 0 is in A1 B1 will say yes and
if there is anything else in A1, B1 would say No. Note: If there is no 0 in
a 1 it will be because someone typed text in it.

Thank you
Jeremy
 
B

Bernie Deitrick

JEremy,

It depends on how you want to handle blanks:

=IF(AND(A1<>"",A1=0),"Yes","No")
or
=IF(A1="","", IF(A1=0,"Yes","No"))
or
=IF(A1=0,"Yes","No")

HTH,
Bernie
MS Excel MVP
 
J

Jeremy

Is this what I type in B1 and do I put a = in front of it?

Thank you for all of your help
 
Top