Sensible Search Function

A

Alan Little

I want column B to have a '1' if column A has the letter 'Z' in it, and to
have nothing if 'Z' is not present.

Unfortunately, both SEARCH and FIND return a #VALUE! error if the search
value is not present, rather than returning a zero or some such thing,
which would make a lot more sense. What I end up with is "If 'Z' is
present, display a '1', otherwise throw an error." Not really useful.

Anyone have an idea how I can do what I'm trying to do?
 
A

Alan Little

Carved in mystic runes upon the very living rock, the last words of Peo
Sjoblom of microsoft.public.excel.worksheet.functions make plain:
Try

=IF(ISNUMBER(FIND("Z",A1)),1,"")

That did it. Thanks.
 

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