Excel formula for counting up odd / even numbers?
there's probably a slick way, but in a new column, do a formula on the first row:
=IF(MOD(A1,2)>0,A1,0)
and then dbl-click that down to the bottom of the data.
sum the new column
do the same in a new column for even numbers (mod(x,2)=0)
=IF(MOD(A1,2)>0,A1,0)
and then dbl-click that down to the bottom of the data.
sum the new column
do the same in a new column for even numbers (mod(x,2)=0)
Fosters,
I tried it but got some rather large figures come up so I just changed the 2nd A1 in the formula you gave to a 1 so odd numbers appear as 1's and even as 0's.
Now I just need put COUNTIF at the bottom to calculate how many 0's and 1's to give me the totals required.
Thanks for that mate.
Regards,
ST.
I tried it but got some rather large figures come up so I just changed the 2nd A1 in the formula you gave to a 1 so odd numbers appear as 1's and even as 0's.
Now I just need put COUNTIF at the bottom to calculate how many 0's and 1's to give me the totals required.
Thanks for that mate.
Regards,
ST.
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
Dec 28, 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
Nov 18, 2015 07:03 AM




