Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / May 2008

Tip: Looking for answers? Try searching our database.

True/False for finding text in cells

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pdi805 - 12 May 2008 01:54 GMT
Is there a simple formula for checking if a cell contains a text string,
which returns a TRUE/FALSE? It is possible to combine  "ISERROR" and "FIND",
but this becomes a pain when you have to do it all the time.  Instead of
using the reverse logic of:

=if(iserror(find("text",A1))=FALSE,...

it would be so much easier to write:

=if(contains("text",A1),...

This is a very basic thing you can do with an autofilter, so it seems like
there would be a function that does this without returning error values.  Any
suggestions?  Thank you.
Joel - 12 May 2008 03:00 GMT
Find doesn't return an error, it will return zero if not found or the
character position where the string starts

=if(find("text",A1)=0,False,True)

> Is there a simple formula for checking if a cell contains a text string,
> which returns a TRUE/FALSE? It is possible to combine  "ISERROR" and "FIND",
[quoted text clipped - 10 lines]
> there would be a function that does this without returning error values.  Any
> suggestions?  Thank you.
David Biddulph - 12 May 2008 08:31 GMT
Which version of Excel is that, Joel?
With Excel 2003, FIND returns #VALUE! if the text is not found.
--
David Biddulph

> Find doesn't return an error, it will return zero if not found or the
> character position where the string starts
[quoted text clipped - 18 lines]
>> Any
>> suggestions?  Thank you.
Joel - 12 May 2008 09:33 GMT
Your right, I was thinking of the INSTR in VBA.

> Which version of Excel is that, Joel?
> With Excel 2003, FIND returns #VALUE! if the text is not found.
[quoted text clipped - 23 lines]
> >> Any
> >> suggestions?  Thank you.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.