Number of WorkDays & Weekend Days in each month

ricafonyat

New Member
Joined
May 1, 2017
Messages
29
Office Version
  1. 365
Platform
  1. Windows
Hello !

What formula should I use in cells D4:O5 to display the number of working days and weekend days considering each of the months in cells D3:O3?

In my case only Fridays and saturdays are weekend days.

1719962325424.png


Many Thanks in advance
Best Regards
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Try
Book1 (version 2).xlsb
ABCDEFGHIJKLMNO
1
2
3Jan-24Feb-24Mar-24Apr-24May-24Jun-24Jul-24Aug-24Sep-24Oct-24Nov-24Dec-24
4Workdays232121222221232122232023
5Weekend days881089981088108
Sheet8
Cell Formulas
RangeFormula
E3:O3E3=EDATE(D3,SEQUENCE(,11))
D4:O4D4=NETWORKDAYS.INTL(+D3:O3,EOMONTH(+D3:O3,0),7)
D5:O5D5=NETWORKDAYS.INTL(+D3:O3,EOMONTH(+D3:O3,0),"1111001")
Dynamic array formulas.
 
Upvote 0
Try
Book1 (version 2).xlsb
ABCDEFGHIJKLMNO
1
2
3Jan-24Feb-24Mar-24Apr-24May-24Jun-24Jul-24Aug-24Sep-24Oct-24Nov-24Dec-24
4Workdays232121222221232122232023
5Weekend days881089981088108
Sheet8
Cell Formulas
RangeFormula
E3:O3E3=EDATE(D3,SEQUENCE(,11))
D4:O4D4=NETWORKDAYS.INTL(+D3:O3,EOMONTH(+D3:O3,0),7)
D5:O5D5=NETWORKDAYS.INTL(+D3:O3,EOMONTH(+D3:O3,0),"1111001")
Dynamic array formulas.
Instead of the two separate formulas in cells D4 and D5, you can use this single formula in cell D4 to produce both rows of values...
Excel Formula:
=NETWORKDAYS.INTL(+D3:O3,EOMONTH(+D3:O3,0),{"0000110";"1111001"})
Note: The semi-colon inside the array constant is my locales "next row" delimiter for array constants.
 
Upvote 1
Instead of the two separate formulas in cells D4 and D5, you can use this single formula in cell D4 to produce both rows of values...
Excel Formula:
=NETWORKDAYS.INTL(+D3:O3,EOMONTH(+D3:O3,0),{"0000110";"1111001"})
Note: The semi-colon inside the array constant is my locales "next row" delimiter for array constants.
I did not think about that, but passing a 7 also works in the array.
Excel Formula:
=NETWORKDAYS.INTL(+D3:O3,EOMONTH(+D3:O3,0),{7;"1111001"})
 
Upvote 1
I did not think about that, but passing a 7 also works in the array.
Excel Formula:
=NETWORKDAYS.INTL(+D3:O3,EOMONTH(+D3:O3,0),{7;"1111001"})
And I did not think about doing that... I just figured the array had to use the same pattern mode and it never crossed my mind to check if that was so.
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,209
Members
453,022
Latest member
RobertV1609

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