View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default SEARCH function help

Try something like this:

For text in A1
B1: =IF(MAX(COUNTIF(A1,{"*index*","*table*","*legend*" })),"","not ")&"indexed"

If A1 contains any of index, table, or legend the return value is "indexed";
otherwise "not indexed".

Is that something you can work with?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Eric Shamlin" wrote:

Ok, I need to search for partial text matches in an IF statement.

the base formula goes like this:
=IF ((ISNUMBER(SEARCH("index", A1), "Indexed", "Not indexed")

what i need is basically the same thing.. but looking for more than one
search match.

ideally something like:

=IF((ISNUMBER(SEARCH("index" or "table" or "legend"), a1), "Indexed", "Not
Indexed")

Make sense?