Mutiple "and"s and "or"s in "IF" statement

  • Thread starter Thread starter tcek
  • Start date Start date
T

tcek

sorry if this is a double post. I am trying to author the following generic
statement in excel

"IF" reference cell "A17" equals "A" or "B" AND reference cell "A15" equals
"1", "2" or "3" then "value" else "different value"

thanks in advance
 
=IF(AND(OR(A15={"A","B"}),OR(A17={1,2,3})),"Statement A","Statement B")

--


Regards,


Peo Sjoblom
 

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