Substring not found

W

Wayne Burrows

Hi

Is there a worksheet function that will return zero if a substring is not
found?

similar to
=Find("Text","Something Else") but returns zero.

TIA

Wayne
 
L

Leo Heuser

Hi Wayne

One way:

=IF(ISERROR(FIND("Text","Something Else")),0,FIND("Text","Something Else"))

--
Best Regards
Leo Heuser
Excel MVP

Followup to newsgroup only please.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top