View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.misc
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default If no comma found

=IF(SEARCH(C1,A1),"found","not found")

If the item isn't found that formula will return an error. It will *never*
return "not found".


--
Biff
Microsoft Excel MVP


"Shane Devenshire" wrote in
message ...
Hi,

To add flexibility enter the search item in another cell, say C1 and then

=IF(SEARCH(C1,A1),"found","not found")

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"David P." wrote:

What formula would accomplish:

If no comma found in A1 then...
--
David P.