Projecting End date by accounting for holidays

BB77

New Member
Joined
Jan 12, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello All,

Looking for some support with this one. I will do my best to explain it. I am trying to dynamically calculate the end date of a program of study by using the start date and the number of program days (easy enough), while dynamically including/accounting for the established holidays that would fall within the length of that program.

So, for example, let's say the program starts on January 1st and is 20 days long, however, there is a holiday on 1/10 and day 1/19, so the end date really needs to be 22 days after the start date instead of 20.

Another example, a program that is 20 days long starts on 1/11 with the same holidays as above. For this entry, the calculation would return an end date based on 21 days because it starts after the holiday on 1/10.

The holiday dates are pre-established. Currently, I am attempting to have the holidays listed in one table and then have the program start date and number of days be what someone would enter to have the end date dynamically generated from referencing the list of holidays that would fall within the range of that program. And, I am lost bouncing between some VLOOKUP, INDEX, MATCH, and COUNTIFS. LOL

Any help would be appreciated.

Brad
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi & welcome to MrExcel.
How about
Fluff.xlsm
ABCDEFG
1Holidays
211/01/20242009/02/202410/01/2024
301/01/20242031/01/202419/01/2024
Data
Cell Formulas
RangeFormula
C2:C3C2=WORKDAY(A2,B2,$G$2:$G$5)
 
Upvote 0
Thank you! I forgot to mention that I had tried WORKDAY, but I have to count every day in the week. I think I found something that works, although it isn't pretty. Here is what I have ( can't install the add-in on my excel so its pictures only. Sorry.)

Holiday Reference Table:
1705090927902.png


Calculations:
1705091024898.png


Temp Grad Date is =B2+(B3*7)+Q18
Holiday Rows to Calculate: =MATCH(B4,Table18112[End Date],1)
Total Holidays: =SUM(K2:OFFSET(K1,B6,0))

Final Grad Date: =SUM(B4+B7)

It seems to work. Now trying to see what I can consolidate.
 

Attachments

  • 1705090945967.png
    1705090945967.png
    7.3 KB · Views: 4
Upvote 0
In that case how about
Fluff.xlsm
ABCDEFG
1Holidays
211/01/20242001/02/202410/01/2024
301/01/20242023/01/202419/01/2024
Data
Cell Formulas
RangeFormula
C2:C3C2=WORKDAY.INTL(A2,B2,"0000000",$G$2:$G$5)
 
Upvote 0
Ok, I consolidated it down to
1705091414806.png


Total Holidays: =SUM(K2:OFFSET(K1,(MATCH(SUM(B2+(B3*7)),Table18112[End Date],1)),0))
Final Grad Date: =SUM(SUM(B2+(B3*7))+B5)

Thank you!!!!!
 
Upvote 0
Solution

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,096
Latest member
Anshu121

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