Solved

Search for different strings in column with many rows...follow up to previous EE question

Posted on 2016-10-02
4
38 Views
Last Modified: 2016-10-02
I have an Excel spreadsheet with over 23500+ rows that I would like to search column "B" for certain strings.

If one of the strings are found that I'm looking for,  then the word "present' would be put in the next column "C" in the same row.

These are the strings I need to look for.
They can either be lower or higher case letters:

restart
Email
IM
call
N/A


When a string is found  in a cell I would like insert  the name of the string in the next column(C).

Example:

Col. A         Col. B                                                           Col. C
any text    Can I call you?                                               call
any text    Send me your email address.                    email

Thanks
0
Comment
Question by:rkckjk
  • 2
4 Comments
 
LVL 49

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 41825866
Hi,

pls try
=INDEX({"call","email","restart","IM"},MATCH(TRUE,ISNUMBER(SEARCH({"call","email","restart","IM"},B2)),0))

Open in new window

Regards
0
 
LVL 29

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41825886
Please refer to the attached and see if this is what you were trying to achieve.
test-v2.xlsm
0
 
LVL 2

Author Closing Comment

by:rkckjk
ID: 41825888
thanks
0
 
LVL 29

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41825892
@rkckjk
I don't think that the solution offered by Rgonzo will address all your issues you discussed in your previous question.
e.g. the function will return call if the string in B2 contains calling or recall or called which I don't think you want as per the discussion in your previous question.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

832 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