Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I used VLOOKUP to search for a keyword and it works great.
On Jun 14, 1:28 pm, "T. Valko" wrote: 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. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Another way...........
=MID(A1,FIND("happy",A1,1),5) Vaya con Dios, Chuck, CABGx3 "J@Y" wrote: 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. |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Another one:
=if(countif(a1,"*happy*")0,"yep","nope") J@Y wrote: 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. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to search for text within a cell? | Excel Discussion (Misc queries) | |||
Search text within cell | Excel Worksheet Functions | |||
How do I search for specific text and sum the cell to the right? | Excel Worksheet Functions | |||
How can I search for more than one text character in a cell? | Excel Worksheet Functions | |||
How do I search for more than one text character in one cell? | Excel Worksheet Functions |