View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default Need simple formula to find one string in another

You're welcome!

--
Biff
Microsoft Excel MVP


"Eric_NY" wrote in message
...
Thanks to Bob and T. Valko for your suggestions.

"Eric_NY" wrote:

I need a formula which returns Y if a cell contains a string and N if
not.

Here's a start: IF(FIND("XXX",C3),"Y","N"). But the trouble is that if
the
target string is not found, it returns a #VALUE! error.

I can of course fix that by something like
IF(ISERROR(FIND("XXX",C3),"N","Y"). But this seems unnecessarily awkward.
Is
there a simpler solution?

I'm using Excel 2003.

Thanks.