Holiday Next Business Day formula fix

AZSue07

New Member
Joined
Dec 29, 2014
Messages
5
In need of a fix/adjustment to the following formula so if a date falls on a holiday(whether a one day or two day holiday) it changes the date to the next business day with a 08:00 or 09:00 time (EST or EDT dependent). I use a lookup table to list holidays (date only). Current formula is for only if a holiday falls on a Monday. Need it for any day of the week.

My current formula is: (takes into account if daylight savings or standard time)

=IF(OR(WEEKDAY(L5602,2)>5,WORKDAY(L5602,1)+IF(MATCH(L5602,DATE(YEAR(L5602),{1,3,11},{1,15,8})-WEEKDAY(DATE(YEAR(L5602),{1,3,11},7)))<>2,8,9)/24,L5602),IF(WEEKDAY(L5602,2)=1,IF(ISERROR(VLOOKUP(DATE(YEAR(L5602),MONTH(L5602),DAY(L5602)),LkUp!$A$2:$E$29,5,FALSE)),L5602,(INT(L5602)+1.33333)),IF(WEEKDAY(L5602,2)=1,IF(ISERROR(VLOOKUP(DATE(YEAR(L5602),MONTH(L5602),DAY(L5602)),LkUp!$A$2:$E$29,5,FALSE)),L5602,(INT(L5602)+1.375)),L5602)))


L is my created date (mm/dd/yyyy h:mm)

Thank you.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
It seems like you could build something around a formula like this:
Code:
=WORKDAY(l5602-1,1,LkUp!$A$2:$E$29)

That formula returns the next business day after the referenced-data-minus-one-day, taking holidays into consideration.

Is that something you can work with?
 
Upvote 0
It seems like you could build something around a formula like this:
Code:
=WORKDAY(l5602-1,1,LkUp!$A$2:$E$29)

That formula returns the next business day after the referenced-data-minus-one-day, taking holidays into consideration.

Is that something you can work with?


I am not sure how to apply this formula to produce the result I'm looking for. To further explain what I need:

L is the created date/time. Using a look up table for holidays, I need a formula that will look at L and determine if it falls on a holiday. If not, the date/time in L is also the date/time in P (Holiday Next Business Day). If L is a holiday, I then need it to be converted to the next business day with a time of 09:00 if Eastern Standard Time or 10:00 if Eastern Daylight Savings time appearing in column P. Examples below:


Created Time
Holiday Next Business Day
11/27/2014 9:54
12/1/2014 9:00
11/26/2014 9:54
11/26/2014 9:54

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,410
Messages
6,124,749
Members
449,186
Latest member
HBryant

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