• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Help: IF & OR Criteria - Excel

Arslan999

New Member
I have below situation where I want "Y" for True, but along with D2,D4 criteria I also want "Y'' if any words starts from O and S as well. Kindly Help

=IF((OR(T54="D4",T54="D2",T54="O",T54="S")),"Y","N")

Thanking you in Advance
 
Try,

=IF((OR(T54="D2",T54="D4",LEFT(T54)="O",LEFT(T54)="S")),"Y","N")

Or,

=IF(OR((T54={"D2","D4"})+(LEFT(T54)={"S","O"})),"Y","N")

Regards
 
Back
Top