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

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
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,224,818
Messages
6,181,150
Members
453,021
Latest member
Justyna P

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