IF function with Text

T

TSG

I have a simple if function which looks like this: =if(a1="a","good","bad") as long as A1 contains a value (text or numeric) this works fine, but if A1 is empty or contains a formula, the test always comes back as True. Any suggestions?
 
D

Dave R.

It doesn't do that on my computer with the formula you have there. If it's
empty, it's not "a", so you should get "bad". What formula might you have in
A1 that would change your result to true?


TSG said:
I have a simple if function which looks like this:
=if(a1="a","good","bad") as long as A1 contains a value (text or numeric)
this works fine, but if A1 is empty or contains a formula, the test always
comes back as True. Any suggestions?
 
M

Mark Graesser

It shouldn't. I assume from the lower case letters that you typed the formula into your posting. Could you sweep the formula in your formula bar, copy it, and then paste it into your post? Your formula as written here should work fine

Regards
Mark Graesse
(e-mail address removed)

----- TSG wrote: ----

I have a simple if function which looks like this: =if(a1="a","good","bad") as long as A1 contains a value (text or numeric) this works fine, but if A1 is empty or contains a formula, the test always comes back as True. Any suggestions?
 
B

Bill P. Sullivan

Dave R. said:
It doesn't do that on my computer with the formula you have there. If it's
empty, it's not "a", so you should get "bad". What formula might you have in
A1 that would change your result to true?

Works on mine - try re-typing it.
 

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

Top