Funny, I tried something like that initially, and it didn't appear to work. So I tried again, and now it does. I must have had a typo initially.
However, there is one issue with your formula. If you choose "2" for your second argument, then Saturday returns 6, not 7.
That argument is optional, and if you leave it off and go with the default, Saturday is 7.
So it should be: =SUMPRODUCT(--(WEEKDAY(A2:A32,2)=6))
or simply: =SUMPRODUCT(--(WEEKDAY(A2:A32)=7))
You're quite right Joe
For some reason I was reading it as counting Sundays, not Saturdays.
So either
=SUMPRODUCT(--(WEEKDAY(A2:A32,2)=6))
or
=SUMPRODUCT(--(WEEKDAY(A2:A32)=7))
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.