searching for multiple text strings

G

Guest

How do you search for multiple words in any given cell. The order of the
words being searched does not matter.

i.e. If I am looking for the words 'brake' and 'clutch':

1 "John's Brake and Clutch"
2 "Jerry's Clutch Repair"
3 "Impact Clutch/Brake"
4 "Brakes and Clutches r Us"

If want the search to work for 1, 3, and 4. Any ideas?
 
N

N Harkawat

Use this formula assuming that the text is on cell A1
=--ISNUMBER(SEARCH("clutch",A1))+(--ISNUMBER(SEARCH("brake",a1)))
all values = 2 is your answer
 
J

Jason Morin

With entries in col. A, you could tag the entries in
column B using:

=IF(SUM(COUNTIF(A1,{"*brake*","*clutch*"}))=2,"b/c","")

HTH
Jason
Atlanta, GA
 
G

Guest

I appreciate your help. Problem solved.

N Harkawat said:
Use this formula assuming that the text is on cell A1
=--ISNUMBER(SEARCH("clutch",A1))+(--ISNUMBER(SEARCH("brake",a1)))
all values = 2 is your answer
 
G

Guest

Thanks for the help. Works perfectly.

Jason Morin said:
With entries in col. A, you could tag the entries in
column B using:

=IF(SUM(COUNTIF(A1,{"*brake*","*clutch*"}))=2,"b/c","")

HTH
Jason
Atlanta, GA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top