Count Day of Week formula

sunrise06

Active Member
Joined
Oct 27, 2006
Messages
262
Office Version
  1. 365
Platform
  1. Windows
I could use help with a formula. I have a column of dates and in another set of cells I would like to count the number of those dates that fall on a Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, or Saturday.

Suggestions?

Thanks!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
I would like to count the number of those dates that fall on a Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, or Saturday.

Isn't that ALL of them?

Or do you mean you want 7 formulas, one to count Sunday, one for Monday etc.. ?

Try
=SUMPRODUCT(--(A1:A100<>""),--(WEEKDAY(A1:A100)-1))

The 1 is for Sunday, change to 2 for Monday, 3 for Tuesday etc...
 
Upvote 0
Jonmo1 that doesn't appear to work, I have 1st to 31st Jan in Col A it returns 99 for Sunday.
 
Upvote 0
Ugh..typo..

=SUMPRODUCT(--(A1:A100<>""),--(WEEKDAY(A1:A100)-1))
should be
=SUMPRODUCT(--(A1:A100<>""),--(WEEKDAY(A1:A100)=1))
 
Upvote 0
Glad to help, thanks for the feedback.

Thanks to Chops for noting the problem.
 
Upvote 0

Forum statistics

Threads
1,215,655
Messages
6,126,050
Members
449,283
Latest member
GeisonGDC

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