IF Statement equalling multiple words. Please Help

  • Thread starter Thread starter Phillip Vong
  • Start date Start date
P

Phillip Vong

I want to say if cell A1 = "word1" or "word2" or "word3", then "".
Otherwise do this.

I know how to make check if it = 1 item, but how do you make it check 3 or
four things without using multiple IF statements?

Thanks

Phil
 
Use and If(or(A1="word1",A1="word2",A1="word3"),then"",else)

That should work for you,
Cody
 
=IF(OR(A1="word1",A1="Word2",A1="word3"), "do something","do something
else") if any one stement is true or
=IF(AND(A1="word1",A1="Word2",A1="word3"), "do something","do something
else") if all statements are true
Regards,
 
I want to say if cell A1 = "word1" or "word2" or "word3", then "".
Otherwise do this.

I know how to make check if it = 1 item, but how do you make it check 3 or
four things without using multiple IF statements?

Thanks

Phil

A little shorter:


=IF(OR(A1={"word1","word2","word3"}),"","do this")


--ron
 

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