LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default True/False for finding text in cells

Your right, I was thinking of the INSTR in VBA.

"David Biddulph" wrote:

Which version of Excel is that, Joel?
With Excel 2003, FIND returns #VALUE! if the text is not found.
--
David Biddulph

"Joel" wrote in message
...
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)


"pdi805" wrote:

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.




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Blank cells: ISBLANK = FALSE, ISTEXT = TRUE Raj[_2_] Excel Worksheet Functions 3 January 4th 08 04:47 PM
Calculate true/false value based on array text input Christian[_2_] Excel Worksheet Functions 3 March 21st 07 09:28 PM
Function to return True/False if all are validated as True by ISNU Tetsuya Oguma Excel Worksheet Functions 2 March 15th 06 10:28 AM
how to change colour of text in true or false formula linda Excel Worksheet Functions 1 August 23rd 05 09:58 AM
need array of true/false if text exists alex Excel Worksheet Functions 0 November 16th 04 09:58 AM


All times are GMT +1. The time now is 01:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"