Get count of weekdays in range

MrChiliCheese

New Member
Joined
Mar 24, 2020
Messages
1
Office Version
  1. 2010
Platform
  1. Windows
Hello,

I have a list with several days and also a start and end date.

Day
2019/01/09
2019/01/18
2019/02/05
2019/02/20
2019/02/27
2019/05/01
2019/07/14
2019/07/15
2019/08/09
2019/08/10
2019/09/14
2019/12/30

I have to retrieve the count per weekday from the list between start and end date and this without using VBA.
Begin2020/02/06
End2020/08/10
DayCount
Monday1
Tuesday-
Wednesday3
Thursday-
Friday1
Saturday1
Sunday1

Not really sure how to start solving this issue. Help is appreciated - thanks a lot.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Welcome to the forum.

I think this ought to help.

MrExcel posts18.xlsx
BC
2Day
3Wed, Jan 09, 2019
4Fri, Jan 18, 2019
5Tue, Feb 05, 2019
6Wed, Feb 20, 2019
7Wed, Feb 27, 2019
8Wed, May 01, 2019
9Sun, Jul 14, 2019
10Mon, Jul 15, 2019
11Fri, Aug 09, 2019
12Sat, Aug 10, 2019
13Sat, Sep 14, 2019
14Mon, Dec 30, 2019
15
16
17Begin2/6/2019
18End8/10/2019
19
20DayCount
21Monday1
22Tuesday0
23Wednesday3
24Thursday0
25Friday1
26Saturday1
27Sunday1
Sheet3
Cell Formulas
RangeFormula
C21:C27C21=SUMPRODUCT(($B$3:$B$14>=$C$17)*($B$3:$B$14<=$C$18)*(WEEKDAY($B$3:$B$14,2)=ROWS($B$21:B21)))
 
Upvote 0
Welcome to the MrExcel forum!

Try this:

Book2
ABCD
1DayBegin2019/02/06
22019/01/09End2020/08/10
32019/01/18
42019/02/05DayCount
52019/02/20Monday3
62019/02/27Tuesday0
72019/05/01Wednesday3
82019/07/14Thursday0
92019/07/15Friday0
102019/08/19Saturday2
112019/08/10Sunday1
122019/09/14
132019/12/30
14
Sheet9
Cell Formulas
RangeFormula
D5:D11D5=SUMPRODUCT(--($A$2:$A$13>=$D$1),--($A$2:$A$13<=$D$2),--(TEXT($A$2:$A$13,"dddd")=C5))
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,840
Members
449,096
Latest member
Erald

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