Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

Using ISERROR with OR

I have a cell that can have the value "MGR" or "MANAGER" in it along with other information.
MGR and MANAGER may be at the beginning of the field or in the middle or at the end.
You might have "MGR OF LOGISTICS" or "MANAGER OF LOGISTICS" or "KITCHEN MANAGER".
If you have MGR or MANAGER, I want it to come back with "MGR".
If it is NOT MGR or MANAGER, I don't want an error, but a blank.
0
Alex Campbell
Asked:
Alex Campbell
1 Solution
 
NBVCCommented:
Try:

=IF(OR(ISNUMBER(SEARCH({"Mgr","Manager"},A1))),"MGR","")

where A1 contains original text.
0
 
SteveCommented:
Another solution (of which there is undoubtably many)

=IF(OR(COUNTIF(A1,"*MGR*"),COUNTIF(A1,"*MANAGER*")),"MGR","")
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now