Find a specific word in a string of text.
I am seeking to write a formula in Numbers. I need to search a cell of text to see if a specific word exists and if so then do "X"
Mac mini, OS X 10.10
Apple Intelligence is now available on iPhone, iPad, and Mac!
I am seeking to write a formula in Numbers. I need to search a cell of text to see if a specific word exists and if so then do "X"
Mac mini, OS X 10.10
Hi snewcom,
Another way.
Formula in C2 (and fill down)
=IFERROR(SEARCH(C$1,B2,1),0)
SEARCH inserts the starting position of the keyword in the string.
If the keyword is not found, IFERROR inserts 0
Formula in D2 (and fill down)
=IF(C2>0,"X","")
Regards,
Ian.
Hi snewcom,
Another way.
Formula in C2 (and fill down)
=IFERROR(SEARCH(C$1,B2,1),0)
SEARCH inserts the starting position of the keyword in the string.
If the keyword is not found, IFERROR inserts 0
Formula in D2 (and fill down)
=IF(C2>0,"X","")
Regards,
Ian.
One ways to use COUNTIF with the * wildcard, something like this:
=IF(COUNTIF(A2,"*"&B$1&"*")>0,"X","")
Substitute ; for , in the formula if your region uses , as a decimal separator.
SG
Find a specific word in a string of text.