It's because you aren't really using multiple ranges
=COUNTIF(U5:U10:U12:U17,"3.028")
is the same as
=COUNTIF(U5:U17,"3.028")
you can test that by putting 3.028 in U11 and notice that it will be
counted, but
=SUM(COUNTIF(INDIRECT({"U5:U10","U12:U17"}),3.028) )
will not count 3.028 in U11
but if U11 is blank the result would be the same
--
Regards,
Peo Sjoblom
http://nwexcelsolutions.com
"Debbie" <u21726@uwe wrote in message news:600e02923e903@uwe...
It's funny I get the same results no matter what formula I use the one you
sent and mine, I just look at mine and it doesn't appear logical...
Peo Sjoblom wrote:
One way
=SUMPRODUCT(COUNTIF(INDIRECT({"U5:U10","U12:U17" }),3.028))/COUNTA(U5:U10,U12:U17)
or
=SUMPRODUCT(COUNTIF(INDIRECT({"U5:U10","U12:U17" }),3.028))/COUNT(U5:U10,U12:U17)
since COUNT count numbers only while COUNTA count numbers and text
Hi all, I'm reading this site and am really impressed with the
knowledge.
I'm
[quoted text clipped - 8 lines]
=COUNTIF(U5:U10:U12:U17,"3.028")/COUNTA(U5:U10,U12:U17)
Thanks so much for your help.