Network days from a dropdown

ChrisFoster

Active Member
Joined
Jun 21, 2019
Messages
256
Office Version
  1. 365
Platform
  1. Windows
This should be easy for one of you guys.
I have a dropdown list in cell A1, with the 1st date of each month (So 01/01/2024, 01/02/2024, 01/03/2024 etc).

What I want is a formula to go into the cell B1 that returns the number of working days in that month (excluding bank holidays).

What formula do I need please?
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Assuming your working days exclude Saturday and Sunday, you can use this:
Book1
ABCD
11-Jan-2422Holidays
21st of monthWorking days in month1-Jan-24
319-Feb-24
429-Mar-24
520-May-24
621-Jun-24
71-Jul-24
85-Aug-24
92-Sep-24
1030-Sep-24
1114-Oct-24
1211-Nov-24
1325-Dec-24
1426-Dec-24
Sheet1
Cell Formulas
RangeFormula
B1B1=NETWORKDAYS(A1,EOMONTH(A1,0),Holidays)
 
Upvote 0
Assuming your working days exclude Saturday and Sunday, you can use this:
Book1
ABCD
11-Jan-2422Holidays
21st of monthWorking days in month1-Jan-24
319-Feb-24
429-Mar-24
520-May-24
621-Jun-24
71-Jul-24
85-Aug-24
92-Sep-24
1030-Sep-24
1114-Oct-24
1211-Nov-24
1325-Dec-24
1426-Dec-24
Sheet1
Cell Formulas
RangeFormula
B1B1=NETWORKDAYS(A1,EOMONTH(A1,0),Holidays)
Thanks, this just brings up result of #NAME?
 
Upvote 0
Select D2:D14 Press Ctrl+F3 and select new - it shall bring you to creation of named range called Hollidays, referring to your_sheet!$D$2:$D$14 . Once you accept it and recalculate (use F9 for recalculation) you shall have proper result
 
Upvote 0
Sorry, @ChrisFoster, I should have stated that Holidays was a named range for the dates listed in D$2:$D$14. You can/should use either the named range tools as @Kaper described or a range that contains the list of bank holidays that applies to you.
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,117
Members
453,021
Latest member
Justyna P

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