Number of WorkDays & Weekend Days in each month

ricafonyat

New Member
Joined
May 1, 2017
Messages
26
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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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 0
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 0
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,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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