Ok, I didn't get any response to my original request so I spent some time to try to make my spreadsheet easier to understand.
Completion Date-Time Calculator.xlsx
Restatement of problem:
I have a list of jobs for which I need to calculate a completion time and date. The second job in the series cannot begin until the first job is complete and so on. The finish time of each job must consider weekends, holidays and the working hours of each day. I found a solution in other threads that works given a default start and stop time that remains the same every day. I'm looking for a solution that allows me to change the working hours by date or at the very least add a shift of overtime hours on a Saturday.
Start Time (A1): User entry of the start time and date of the first job
Duration (B1:B20): User entry of the duration of each job in minutes
Finish Time (C1:C20): Calculation of the completion time using a formula (see below) I found in several other similar threads.
=WORKDAY(A2-1,CEILING(((B2/1440)+MEDIAN(NETWORKDAYS(A2,A2,Holidays)*MOD(A2,1),DayStart,DayFinish)-DayStart)/(DayFinish-DayStart),1),Holidays)+MEDIAN(NETWORKDAYS(A2,A2,Holidays)*MOD(A2,1),DayStart,DayFinish)+(B2/1440)-CEILING(MEDIAN(NETWORKDAYS(A2,A2,Holidays)*MOD(A2,1),DayStart,DayFinish)+(B2/1440)-DayStart,DayFinish-DayStart)+DayFinish-DayStart
DayStart (F$4): Named Range for default start time used in above formula
DayFinish (G$4): Named Range for default finish time used in above formula
Holidays (G$14:G$23): Named Range for holidays to be excluded
Any help or direction would be appreciated.
Bookmarks