Networkdays by quarter and holidays

ac1983

New Member
Joined
Oct 21, 2020
Messages
4
Office Version
  1. 365
Platform
  1. MacOS
Hi everyone,

I have calculated the total number of workdays between two dates by quarter using the formula below:

=MAX(0,NETWORKDAYS(MAX($A2,C$1),MIN($B2,EOMONTH(C$1,2))))

Example:

Start DateEnd Date1/1/20194/1/20197/1/201910/1/2019
1/1/20194/30/2019642200
1/1/201912/31/201964656666

Now, I would like to reduce the numbers for each quarter by the number of holidays in each quarter. Does anyone have any suggestions on how I can incorporate holidays into this formula?

Thanks!
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi & welcome to MrExcel.
Networkdays has an argument for holidays, have a look here
 
Upvote 0
Hi & welcome to MrExcel.
Networkdays has an argument for holidays, have a look here
Yes, I'm aware but not sure how to apply that to the problem above.
 
Upvote 0
Do you have the holidays listed anywhere?
 
Upvote 0
Yes, I have considered two approaches for holidays:

Approach 1 (List of Holidays):

Holidays
1/1/2019
5/27/2019
7/4/2019
9/2/2019
11/28/2019
12/25/2019

Approach 2 (Count of Holidays per Quarter):

Quarter# of Holidays
Q11
Q21
Q32
Q42
 
Upvote 0
In that case you can just add the holiday range (using approach 1) to your formula like
Excel Formula:
=MAX(0,NETWORKDAYS(MAX($A2,C$1),MIN($B2,EOMONTH(C$1,2)),$H$2:$H$7))
just change the H2:H7 to the range where your dates are.
 
Upvote 0
Solution
In that case you can just add the holiday range (using approach 1) to your formula like
Excel Formula:
=MAX(0,NETWORKDAYS(MAX($A2,C$1),MIN($B2,EOMONTH(C$1,2)),$H$2:$H$7))
just change the H2:H7 to the range where your dates are.
Worked beautifully. Thanks so MUCH!
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,491
Messages
6,125,099
Members
449,205
Latest member
ralemanygarcia

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