Link to home
Start Free TrialLog in
Avatar of Jhovyn Marcos
Jhovyn Marcos

asked on

Excel Formula - How to search text that contains certain value in multiple columns?

Good Day! Please help how should I do this, If column Product contains "PO" OR  column Size contains "0MX" the status will be Approved else Disapproved. See image

User generated image
Thank You and God Bless all!
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
another approach using SEARCH

=IF(IFERROR(SEARCH("PO",A2),0)+IFERROR(SEARCH("0MX",B2),0)>0,"Approved", "Disapproved")

Open in new window


* I am assuming Size may be like " 0MX - 1MX" or "Size 0MX". Thats why I used seacrh here on this column as well..
Here is another approach:
=IF(OR(ISNUMBER(SEARCH("PO",A2)),B2="0MX"),"Approved","Disapproved")

Open in new window

Please find attached with all the options...
Jhovyn_SearchAndUpdateStatus.xlsx
Avatar of Jhovyn Marcos
Jhovyn Marcos

ASKER

Wow! All of you are correct! Thank you guys you helped me a lot :D