Complex If/Then

P

PAL

Can someone help on this formula? Basically, trying to get a "Yes", if the
field, E2, equals, "Open" or "Closed" or "Close Out" or, "Completed".

Perhaps there is an easier way.

=IF(E2="Open","Yes",(IF(E2="Closed","Yes",IF(E2="Close Out","Yes","",
IF(E2="Completed","Yes","")))

Thanks.
 
P

Pete_UK

Here's one way:

=IF(ISNA(MATCH(E2,{"Open","Closed","Close out","Completed"},
0)),"","Yes")

Hope this helps.

Pete
 
D

David Biddulph

You were probably trying to say
=IF(E2="Open","Yes",IF(E2="Closed","Yes",IF(E2="Close Out","Yes",
IF(E2="Completed","Yes",""))))

An alternative is
=IF(OR(E2={"Open","Closed","Close Out","Completed"}),"Yes","")
 

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