Workday Calculations to Account for Non-Workday Start Days

reberryjr

Well-known Member
Joined
Mar 16, 2017
Messages
701
Office Version
  1. 365
Platform
  1. Windows
I'm trying to build something to calculate a due date, but am running into some issues with calculating workdays where the start date is a non-workday.

Scenario
Item is received on 7/29/18. The deadline should be 2 working days. This formula pushes the due date to 7/31, but I need for it to say 8/1/18.
=WORKDAY(D11,2,Variables!D$2:D$11)

I started down the path of an IF statement, but I'm not sure how I can write to evaluate the difference between the start date being a Saturday, Sunday or holiday.
=IF(WORKDAY(D11,0),WORKDAY(D11,2,Variables!D$2:D$11))

FYI...the range on the Variables tab is a list of holidays.

I'd like to avoid building another helper column if possible, as there are downstream spreadsheets that leverage the current layout. I'm not sure if I need to try something in VBA instead of a direct formula.

Thoughts?
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Perhaps =IF(WORKDAY(A1-1,1)=A1,WORKDAY(A1,2),WORKDAY(WORKDAY(A1,1),2))

Add holiday ranges as needed
 
Upvote 0

Excel 2010
ABC
2Sun Jul 29, 20182Wed Aug 01, 2018
3Mon Jul 30, 20182Thu Aug 02, 2018
4
5With Jul 30 as a holiday
1a
Cell Formulas
RangeFormula
C2=WORKDAY(A2,B2+(WEEKDAY(A2,2)>5))
C3=WORKDAY(A3,B3+(WEEKDAY(A3,2)>5),Hol)+COUNTIF(Hol,A3)
Named Ranges
NameRefers ToCells
Hol='1a'!$E$2
 
Upvote 0

Forum statistics

Threads
1,215,446
Messages
6,124,900
Members
449,194
Latest member
JayEggleton

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