Calculating Next Working Day

reberryjr

Well-known Member
Joined
Mar 16, 2017
Messages
714
Office Version
  1. 365
Platform
  1. Windows
I have several different categories of work in a spreadsheet, where not all categories have the same SLA for completion. I've been using this formula for the past few months, and there hasn't been an issue, until last Friday. Essentially, a record came in with a start date of 11/22/18. That record has a SLA of 1 day. Because 11/22/18 was a holiday, the SLA date should have been returned as 11/23/18. Instead, this formula is returning the date of 11/24/18, which is a Saturday. I always understood that the Workday function automatically excluded Saturday and Sunday.

Thoughts on where I went wrong?

Code:
=WORKDAY(D2,1+(WEEKDAY(D2,1)>6),Variables!D$2:D$11)+COUNTIF(Variables!D$2:D$11,D2)
 
You may be better nesting a workday formula:

=WORKDAY(WORKDAY(D2-1,1,Variables!$D$2:$D$11),1,Variables!$D$2:$D$11)
 
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
No Sir. If the SLA date lands on a weekend, it should push to the next working day, that is also not a holiday.
 
Upvote 0
No Sir. If the SLA date lands on a weekend, it should push to the next working day, that is also not a holiday.

Thats what it does. It is impossible for the workday formula to give a date that is on a weekend. Its sole aim is to produce a working day.
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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