nested if

I

I don't know Excel

Need nested if for
if a1 = " " value of cell is blank
if a1=b1 value of cell is word good, if not equal "bad"
 
J

JoeU2004

I don't know Excel said:
Need nested if for
if a1 = " " value of cell is blank
if a1=b1 value of cell is word good, if not equal "bad"

=if(A1="", "", if(A1=B1, "good", "bad"))
 
T

T. Valko

=IF(A1,IF(A1=B1,"Good","Bad"),"")

Are you sure you want to use that?

A1 = x
B1 = x

Why isn't the result Good?
 
J

Jacob Skaria

Yep..that will not work for text...Thanks.

Since the OP as mentioned A1 = " " it is better to TRIM()
=IF(TRIM(A1)="","",IF(A1=B1,"Good","Bad"))
 

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