You are on page 1of 6

SumProduct Pty Ltd PLEASE

PLEASE READ:
READ:

Number of Xdays in a Month If,


If, upon
upon opening,
opening, this
this file
file appears
appears to
to contain
contain errors
errors (e.g.
(e.g.
Go to Table of Contents #NAME?),
#NAME?), please
please ensure
ensure thethe following:
following:

Go
Go to
to Tools
Tools ->
-> Add-Ins
Add-Ins (ALT
(ALT +
+ TT +
+ I,
I, all
all versions
versions of
of Excel);
Excel);

Make
Make sure
sure Analysis
Analysis ToolPak
ToolPak and
and Analysis
Analysis ToolPak
ToolPak --
VBA
VBA add-ins
add-ins are
are both
both checked.
checked.

Primary Developer: Liam Bastick

General Cover Notes:


This shows a simple way to calculate the number of Fridays, Saturdays, etc. in a given month.

Any queries, please e-mail: liam.bastick@sumproduct.com


Website: www.sumproduct.com
For past articles visit: www.sumproduct.com
Table of Contents
Number of Xdays in a Month
Go to Cover Sheet

Section & Sheet Titles Page

1 Illustrative Example 3
a. Illustrative Calculations 4
2 Appendix 5
a. Days of the Week 6

Total Pages: 6
Illustrative Example
Section 1.
Number of Xdays in a Month
Go to Table of Contents
çè

Section Cover Notes:


Practcal illustration of how to calculate the number of days in a month for a particular day of the week.

552502148.xls
Assumptions_SC Page 3 of 6
Printed: 04:44:50 on 10/27/2021
Illustrative Calculations
Number of Xdays in a Month
Go to Table of Contents
ç è

Illustrative Calculations

Assumptions

Start Year 2019

Weekday Saturday

Ouputs

Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2019 4 4 5 4 4 5 4 5 4 4 5 4
2020 4 5 4 4 5 4 4 5 4 5 4 4
2021 5 4 4 4 5 4 5 4 4 5 4 4
2022 5 4 4 5 4 4 5 4 4 5 4 5
2023 4 4 4 5 4 4 5 4 5 4 4 5

552502148.xls
Illustrative_Calculations_BO Page 4 of 6
Printed: 04:44:50 on 10/27/2021
Appendix
Section 2.
Number of Xdays in a Month
Go to Table of Contents
çè

Section Cover Notes:


Lists the days of the week for reference.

552502148.xls
Appendix_SC Page 5 of 6
Printed: 04:44:50 on 10/27/2021
Days of the Week
Number of Xdays in a Month
Go to Table of Contents
ç

Days of the Week Names:

Weekdays LU_Weekdays
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday

552502148.xls
Days_of_the_Week_BL Page 6 of 6
Printed: 04:44:50 on 10/27/2021

You might also like