count of working days to include current month

DDT123

New Member
Joined
Aug 9, 2011
Messages
41
Office Version
  1. 365
Platform
  1. Windows
Greetings, I have a table and needing to know the count of working days in a week but, to exclude days which fall into a different month from the weeknum. Our office is open Monday thru Saturday, so if the begin date falls on a Monday, there's potentially 6 working days in that week.

Example: week number 22 of year 2023 was May 29 thru June 4. There were 3 working days in week 22 which were in May.

I've included a screenshot of what the table should look like, but needing the formula in the first column.
 

Attachments

  • Mr Excel 06082023.jpg
    Mr Excel 06082023.jpg
    21.6 KB · Views: 8
T202306a.xlsm
ABCDEFG
1June01-Jun-202330-Jun-20232615-Jun-2023
2
3Mon 29-May-23Sat 01-Jul-2326
4
53026
6
7Mon 29-May-23Sun 04-Jun-233
8Mon 05-Jun-23Sun 11-Jun-236
9Mon 12-Jun-23Sun 18-Jun-23413
10Mon 19-Jun-23Sun 25-Jun-238
11Mon 26-Jun-23Sun 02-Jul-23513
12
13Thu 01-Jun-2315-Jun-202313
1416-Jun-202330-Jun-202313
15
2e
Cell Formulas
RangeFormula
F1F1=NETWORKDAYS.INTL(D1,E1,11)
F3F3=NETWORKDAYS.INTL(MAX(C3,D1),MIN(E1,D3),11)
F5F5=C5-NETWORKDAYS.INTL(D1,E1,"1111110")
G9G9=SUM(F7:F9)
F7:F8F7=NETWORKDAYS.INTL(MAX(C7,D$1),MIN(D7,G$1),11)
F9F9=NETWORKDAYS.INTL(MIN(C9,G$1),MIN(D9,G$1),11)
F10F10=NETWORKDAYS.INTL(MIN(C10,G$1+1),MIN(D10,E$1),11)
F11F11=NETWORKDAYS.INTL(MAX(C11,G$1),MIN(D11,E$1),11)
G11G11=SUM(F10:F11)
F13:F14F13=NETWORKDAYS.INTL(C13,D13,11)
Thank you, it worked! I didn't have the helper cells as you had for the first and last days of the month. I appreciate your time in helping me :)
 
Upvote 0

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
And where is excel being told you are only interested in May?

I didn't have the helper cells as you had for the first and last days of the month.
Yeah, we had no way of knowing from your description how this month is determined, as you did not mention that/answer Steve's question.
There might be ways of doing it without those cells if we we knew how we could determine which month to go against (is it in some cell in the workbook, or is it always the current month)?
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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