Counting the incidents that occur on a specific day of the week

HeRoseInThree

Board Regular
Joined
Jan 11, 2018
Messages
103
I am using =SUMPRODUCT(--(WEEKDAY(A$5:A$9999)=1)) to count the incidents that occur on a Sunday and =SUMPRODUCT(--(WEEKDAY(A$5:A$9999)=2)) for Monday and so on. They are working great, except for Saturday =SUMPRODUCT(--(WEEKDAY(A$5:A$9999)=7)). I am getting a value that is 9000+ higher than expected.

Accident Register.xlsx
JKLMNOP
1SundayMondayTuesdayWednesdayThursdayFridaySaturday
219115779955
ALL
Cell Formulas
RangeFormula
J2J2=SUMPRODUCT(--(WEEKDAY(A$5:A$9999)=1))
K2K2=SUMPRODUCT(--(WEEKDAY(A$5:A$9999)=2))
L2L2=SUMPRODUCT(--(WEEKDAY(A$5:A$9999)=3))
M2M2=SUMPRODUCT(--(WEEKDAY(A$5:A$9999)=4))
N2N2=SUMPRODUCT(--(WEEKDAY(A$5:A$9999)=5))
O2O2=SUMPRODUCT(--(WEEKDAY(A$5:A$9999)=6))
P2P2=SUMPRODUCT(--(WEEKDAY(A$5:A$9999)=7))
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Any blank cells will will be treated as a Saturday, how about
Excel Formula:
=SUMPRODUCT((A$5:A$9999<>"")*(WEEKDAY(A$5:A$9999)=7))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,520
Members
449,088
Latest member
RandomExceller01

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