an if( statement looking for a specific phrase anywhere in a cell

B

Bob Phillips

=IF(ISNUMBER(SEARCH(A1,"abc")),"found","not found")

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
O

ozarksons

I want to have an if( statement evaluate a cell and see if it contains a
certain text word or phrase, anywhere in the cell, and if so perform x , if
not y.
 
O

ozarksons

Great answer, thanks except you had it backwards...
=IF(ISNUMBER(SEARCH("abc",A1)),"found","not found")
 
B

Bob Phillips

I keep getting that wrong <g>

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
Top