• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 51
  • Last Modified:

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

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
Richard Kreidl
Asked:
Richard Kreidl
  • 2
1 Solution
 
Rgonzo1971Commented:
Hi,

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

Open in new window

Regards
0
 
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Please refer to the attached and see if this is what you were trying to achieve.
test-v2.xlsm
0
 
Richard KreidlSoftware DeveloperAuthor Commented:
thanks
0
 
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
@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

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

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