=SUMPRODUCT(--(ISNUMBER(SEARCH("ABC",A1:A10))), other conditions...)
i.e. you are looking to see if ABC is contained within any of the
cells in the range A1 to A10. You can use FIND instead of SEARCH if
the case of the text string is important.
Hope this helps.
Pete
Try something like this to count cells in A1:A10 that might contain "ABC"
anywhere within the cell:
=SUMPRODUCT(--(ISNUMBER(SEARCH("ABC",A1:A10))))
Note that case is not factor. ABC is the same as abc.
If in your application case *is* a factor then replace SEARCH with FIND.
Using FIND, ABC is not the same as abc.
--
Biff
Microsoft Excel MVP
"K1" <K...@discussions.microsoft.com> wrote in message
news:4B03937C-A861-4DC8...@microsoft.com...
Note that this example has to be entered as an array formula
[Cntrl-Shift-Enter]
=SUM(IF(ISERROR(SEARCH("xyz",A1:A10)>0),0,IF(SEARCH("xyz",A1:A10)>0,1,0)))
HTH,
Keith
there are times when our answers are so similar ....
Spooky !! <bg>
Pete
> > adding equations. I have tried versions of "*ABC*" and get false values.- Hide quoted text -
>
> - Show quoted text -
You really know your stuff! <bg>
Well, you know how I fell about that.
Cheers!
--
Biff
Microsoft Excel MVP
"Pete_UK" <pash...@auditel.net> wrote in message
news:171a4295-e69b-4ab9...@v25g2000yqk.googlegroups.com...
"Pete_UK" wrote:
> .
>
"T. Valko" wrote:
> .
>
> .
>
--
Biff
Microsoft Excel MVP
"K1" <K...@discussions.microsoft.com> wrote in message
news:6E0A89D5-7F7B-4337...@microsoft.com...
Pete