Adding days to a date and allowing for holidays

Neil_R

New Member
Joined
Jun 18, 2019
Messages
5
I have a formula that will happily add a set number of days to a date and if the outcome is a weekend it will then move to the next working day. I need to add another variable to account for any extra holidays the date may land on. Its counting calendar days so the only relevant date is the end date, if it falls on a weekend or another holiday it needs to move to the next working day. What I have so far is this:

=IF(WEEKDAY(E4+10, 2)>5, (IF(WEEKDAY(E4+10, 2)=6, E4+12, E4+11)), E4+10)

E4 is the date to start counting from and this works fine but then I cant find a way of including a list of dates to move the result on again if it lands on one of these dates. I could use extra columns but am trying to do it in one formula.

Any ideas are welcomed.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Check out the WORKDAY function:

Book1
EFG
1holidays
212/25/2019
312/23/20191/3/20201/1/2020
Sheet5
Cell Formulas
RangeFormula
F3F3=WORKDAY(E3,7,G2:G3)


The WORKDAY.INTL offers even more options.
 
Upvote 0
Check out the WORKDAY function:

Book1
EFG
1holidays
212/25/2019
312/23/20191/3/20201/1/2020
Sheet5
Cell Formulas
RangeFormula
F3F3=WORKDAY(E3,7,G2:G3)


The WORKDAY.INTL offers even more options.
The issue with this is that it then excludes the weekend days from the count, I need to count calendar days and only move the end date if its a weekend or other holiday. I don't think this then works or am I missing something?
 
Upvote 0
True, the WORKDAY formula as built will exclude all weekends/holidays within the range, but you can adjust it like this:

Book1
EFG
1holidays
212/25/2019
312/23/201912/30/20191/1/2020
Sheet5
Cell Formulas
RangeFormula
F3F3=WORKDAY(E3+5,1,G2:G3)


If you want to add 6 days to the date in E3, and then skip to the next workday if that's not a workday, then add 5 to the date, and use WORKDAY to increment by 1 more, and it will check for the weekend/holidays for the last day only.
 
Upvote 0

Forum statistics

Threads
1,214,667
Messages
6,120,808
Members
448,990
Latest member
rohitsomani

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