Calculating the Total working days of each month without start date and end date.

Zee996

New Member
Joined
Nov 30, 2021
Messages
30
Office Version
  1. 365
Platform
  1. Windows
In cell A1 I have month columns and I am looking for a formula that will calculate the total working days in a particular month of that year. There is no start date or end date just the month name.
Like - Aug, Sept, Oct..so on.
Is it possible to get the total working days excluding Saturday & Sunday?
Thank you!
 

Attachments

  • Capture.PNG
    Capture.PNG
    3.4 KB · Views: 3

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
T202209a.xlsm
AB
1Aug23
2Sep22
3
2c
Cell Formulas
RangeFormula
B1:B2B1=LET(d,--(1&A1),NETWORKDAYS.INTL(d,EOMONTH(d,0),1))


N.B. My system's Regional Settings are dd-mm-yyyy. If the suggestion doesn't work, try reversing the 1&A1 part.
 
Upvote 0
Solution
T202209a.xlsm
AB
1Aug23
2Sep22
3
2c
Cell Formulas
RangeFormula
B1:B2B1=LET(d,--(1&A1),NETWORKDAYS.INTL(d,EOMONTH(d,0),1))


N.B. My system's Regional Settings are dd-mm-yyyy. If the suggestion doesn't work, try reversing the 1&A1 part.
Thank you so much for this!:)

Just one question. Will the days update if the year on the computer changes?
 
Upvote 0
Is there a way to update the formula with the Year Column? As the Year changes the working days of 2022 will changes into 2023. I don't want that to change.
Thank you for your help!
 

Attachments

  • Capture2.PNG
    Capture2.PNG
    5.6 KB · Views: 1
Upvote 0
You can specify the year.

T202209a.xlsm
ABC
4Jan202322
5Jan202221
2c
Cell Formulas
RangeFormula
C4:C5C4=LET(d,DATE(B4, MONTH(A4&1),1),NETWORKDAYS.INTL(d,EOMONTH(d,0),1))
 
Upvote 0

Forum statistics

Threads
1,215,004
Messages
6,122,659
Members
449,091
Latest member
peppernaut

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