Complex If/Then

  • Thread starter Thread starter PAL
  • Start date Start date
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.
 
Here's one way:

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

Hope this helps.

Pete
 
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","")
 
Back
Top