How to find the number of occurrence that happen on different days of the week within a month?

GcMT

New Member
Joined
Dec 28, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi, is there any way i can find the number of occurrence that happen on different days of the week within a month of the date range?

Thanks in advance :)

how to find occurance.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAE
2Different start and end dateFrequency on Week-day. "0" = no occuranceNumber of weekday in a month (based on date range column A and B)Total number of Occurance
3Start dateEnd DateMonTueWedThuFriSatSunmontuewedthufrisatsun1234567
45/1/185/31/18101111145554440110110
55/1/185/31/18111111145554440000010
65/1/185/31/18101010045554440000010
75/1/185/31/18010000045554441001002
85/1/185/31/18111111145554442222202
95/11/185/25/18001000022223220030000
105/1/185/29/18000010145444443000004
115/1/185/31/18010000045554440040000
125/1/185/31/18101010145554440004000
135/13/185/31/18101111133332230000440
145/1/185/31/18111110145554440000405
155/1/185/31/18010001045554440000005
165/1/185/31/18000001045554440000005
175/4/185/25/18001000033334330000005
185/1/185/26/18000100034444430000005
195/1/185/31/18101010145554440000405
205/1/185/29/18000000145444445000000
215/1/185/31/18010001045554445044445
225/1/185/31/18010101045554445544445
235/1/185/13/18000100012222225040400
245/1/185/31/18010100145554440500000
255/4/185/31/18001010044444445544445
265/1/185/31/18110101145554440500000
275/1/185/31/18111100045554445040405
28
29
30
31
32Q: To find the number of occurrence that happen on different days of the week within a month?
335/1/185/2/185/3/185/4/185/5/185/6/185/7/185/8/185/9/185/10/185/11/185/12/185/13/185/14/185/15/185/16/185/17/185/18/185/19/185/20/185/21/185/22/185/23/185/24/185/25/185/26/185/27/185/28/185/29/185/30/185/31/18
34MondayTuesdayWednesdayThursdayFridaySaturdaySundayMondayTuesdayWednesdayThursdayFridaySaturdaySundayMondayTuesdayWednesdayThursdayFridaySaturdaySundayMondayTuesdayWednesdayThursdayFridaySaturdaySundayMondayTuesdayWednesday
35
Sheet1
Cell Formulas
RangeFormula
J4:J27J4=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A4&":"&B4)))=2))
K4:K27K4=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A4&":"&B4)))=3))
L4:L27L4=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A4&":"&B4)))=4))
M4:M27M4=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A4&":"&B4)))=5))
N4:N27N4=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A4&":"&B4)))=6))
O4:O27O4=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A4&":"&B4)))=7))
P4:P27P4=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A4&":"&B4)))=1))
Q4:Q27Q4='broadsheet test.xlsx'!Table3_2[@D1]*'broadsheet test.xlsx'!Table3_2[@mon]
R4:R27R4='broadsheet test.xlsx'!Table3_2[@D2]*'broadsheet test.xlsx'!Table3_2[@tue]
S4:S27S4='broadsheet test.xlsx'!Table3_2[@D3]*'broadsheet test.xlsx'!Table3_2[@wed]
T4:T27T4='broadsheet test.xlsx'!Table3_2[@D4]*'broadsheet test.xlsx'!Table3_2[@thu]
U4:U27U4='broadsheet test.xlsx'!Table3_2[@D5]*'broadsheet test.xlsx'!Table3_2[@fri]
V4:V27V4='broadsheet test.xlsx'!Table3_2[@D6]*'broadsheet test.xlsx'!Table3_2[@sat]
W4:W27W4='broadsheet test.xlsx'!Table3_2[@D7]*'broadsheet test.xlsx'!Table3_2[@sun]
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,224,816
Messages
6,181,139
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