how to count if cell "contains" a word
Yeah!
I see my typo.
Left out a space between the 2 words in the 2nd half of the array constant.
Thanks.
--
Regards,
RD
---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Ron Rosenfeld" wrote in message
...
On Fri, 11 Jul 2008 16:02:19 -0700, "RagDyer"
wrote:
Does this work for you:
=SUM(COUNTIF(A1:A5,{"*abcd, abcf*","*abcf,abcd*"}))
Assuming there is *no* possibility of there being:
"abcd, abcg, abcf"
--
HTH,
RD
Pasting in the OP's data, your formula returns a count of 2. The OP
wanted a
count of 3.
--ron
|