Return ODD/EVEN count after a certain number

JRM333

New Member
Joined
Jan 23, 2018
Messages
3
I am looking for a way to return a count of odd numbers after the number 24. It is being used for trials in an experiment and the first 24 are not counted (I am not setting up the experiment - just the tech guy). I want to return the number of odds after 24 and the number of evens after 24. I have used the formula below for the odds, but I cannot find anything to start the count after 24. I was thinking of an IF statement but cannot get it to work.

=SUMPRODUCT(--(MOD(A4:U29,2)=1),--(A4:U29<>""))

Any help would be awesome.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Seemed like it worked for the odds, but not the evens

ODDS:
=SUMPRODUCT(--(MOD(A4:U29,2)=1),--(A4:U29<>""))

EVENS:
=SUMPRODUCT(--(MOD(A4:U29,2)=0),--(A4:U29<>""))
 
Upvote 0
Seemed like it worked for the odds, but not the evens

ODDS:
=SUMPRODUCT(--(MOD(A4:U29,2)=1),--(A4:U29<>""))

EVENS:
=SUMPRODUCT(--(MOD(A4:U29,2)=0),--(A4:U29<>""))
Sorry, I forgot about the EVENs...

=MAX(0,SUMPRODUCT(--(MOD(A4:U29,2)=0),--(A4:U29<>""))-24)
 
Upvote 0

Forum statistics

Threads
1,215,343
Messages
6,124,404
Members
449,156
Latest member
LSchleppi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top