Countif function for Even and Odd numbers
You might simplify your calculations one small way,
=SUMPRODUCT(--MOD(A1:A9,2)) for ODD's
You can also remove the double unary.
=SUMPRODUCT(MOD(A1:A9,2))
--
Biff
Microsoft Excel MVP
"ShaneDevenshire" wrote in
message ...
Hi,
Since your sample numbers are integers, and noting Harlan's correct
observations
You might simplify your calculations one small way, enter the following in
A10
=SUMPRODUCT(--MOD(A1:A9,2)) for ODD's
And in A11
=COUNT(A1:A9)-A10 for EVEN's
Or substitue one of Harlan's formulas for the first one.
--
Thanks,
Shane Devenshire
"Jezzy" wrote:
Hi Hi,
I need help with a formula. I would like to count a column that consists
of
even and odd numbers eg. 28, 31, 43, 50, 60. I like to count how many
numbers in that column is odd or even.
I have tried the following but it didn't work
=countif(a1:a10,"1","3","5")
Appreciate some help here.
Thanks
|