Solved

Using ISERROR with OR

Posted on 2013-01-31
2
255 Views
Last Modified: 2013-01-31
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
Comment
Question by:Alex972
2 Comments
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 38841493
Try:

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

where A1 contains original text.
0
 
LVL 24

Expert Comment

by:Steve
ID: 38841551
Another solution (of which there is undoubtably many)

=IF(OR(COUNTIF(A1,"*MGR*"),COUNTIF(A1,"*MANAGER*")),"MGR","")
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now