View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default Search text in a cell

One way:

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

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

Biff

"J@Y" wrote in message
...
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.