Search text in a cell

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If I have a sentence in a cell, what code can I use to search a word in that
cell?
Eg: A1: "I am happy"
I want to test if A1 has the word "happy" in it.
 
One way:

=ISNUMBER(SEARCH("happy",A1))

Will return either TRUE (yes it does) or FALSE (no it doesn't)

Biff
 

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

Back
Top