G
Guest
Is there a simple way to count "odd" numbers in a column/row? And is there
any limit on the size of the actual number?
Thanx in advance...
any limit on the size of the actual number?
Thanx in advance...
And is there any limit on the size of the actual number?
Odd: =SUMPRODUCT(--(MOD(MOD(A1:A11,1000),2)=1))
Even: =SUMPRODUCT(--(MOD(A1:A11,2)=0))
Using the above, the largest testable number is 99999999999 (there are
eleven 9s in that number).
Use Teethless mama's routine... it appears to be good for up to fifteen
9s.
Even: =SUMPRODUCT(--(MOD(A1:A11,2)=0))
However, I never thought about the limit on MOD() but I can only
get eight 9's before MOD() error out in XL97
out
the shortest formulas.
....Teethless mama said:Counting odd number
=SUMPRODUCT(--(--RIGHT(A1:A100,1)={1,3,5,7,9}))
=SUMPRODUCT(--((B1:B4)/2=INT(B1:B4/2)))
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.