Formula for Estimated Completion Time for Typical workday

Jfeijoo

New Member
Joined
Jan 23, 2023
Messages
8
Office Version
  1. 365
Platform
  1. Windows
What formula would work in order to show estimated completion time for a typical workday from 6AM-2PM Monday through Friday no Weekends and the only data able to use is the following below but the next completion start time is the previous (line above) completion time. Also if it goes over the 8 hour day then it spills over to the next day starting at 6AM plus the additional time. Need a formula able to click and drag down.

Start DatePlt QtyPcsLine Rate / HrTime (Hrs)Time (Days)Estimated Completion Date
1/10554404.00002.00000.0833
1/10/23 8:00 AM​
1/10552204.00001.00000.0417
1/10/23 9:00 AM​
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
No it doesn't only 365 & 2021
 
Upvote 0
@Jfeijoo , with 365 you can use the LET function. So, see if this solution works? (to convert it to just using cell references in the formula is very complicated).

Cell Formulas
RangeFormula
F16:F24F16=D16/(E16*B16)
G16:G24G16=F16/24
H16:H24H16=LET( StartDayTime, A16, StartTime, A16-INT(A16), JobTime,G16, MaxEndTime,14/24, OneWorkDay, 8/24, HoursWorkedBefore2PM, IF(StartTime + JobTime > MaxEndTime,MaxEndTime - StartTime, JobTime), TotalHoursCarriedOver,IF(StartTime + JobTime <= MaxEndTime, 0, StartTime + JobTime - MaxEndTime), DaysCarriedOver, INT(TotalHoursCarriedOver/(8/24)+1), HoursCarriedOver, IFERROR(TotalHoursCarriedOver - ((DaysCarriedOver-1) * (8/24)),0), EstCompleteDate, IF(StartTime + JobTime <= MaxEndTime, StartDayTime + JobTime, WORKDAY.INTL(StartDayTime,DaysCarriedOver,1,HOLIDAYLIST)+HoursCarriedOver + 6/24), EstCompleteDate)
A16A16=44936+6/24
A17:A24A17=H16
Named Ranges
NameRefers ToCells
HOLIDAYLIST=Sheet7!$J$3:$J$4H16:H24
 
Upvote 0
This works! Is there anyway to simplify?
Great, I am happy it fulfills your needs. Simplify? There may be some tweaks, but the Let function and using a table make the calculation easiest for me. I'll try to post the Let function with some better formatting here:

=LET(
StartDayTime, A16,
StartTime, A16-INT(A16),
JobTime,G16,
MaxEndTime,14/24,
OneWorkDay, 8/24,
HoursWorkedBefore2PM, IF(StartTime + JobTime > MaxEndTime,MaxEndTime - StartTime, JobTime), TotalHoursCarriedOver,IF(StartTime + JobTime <= MaxEndTime, 0, StartTime + JobTime - MaxEndTime),
DaysCarriedOver, INT(TotalHoursCarriedOver/(8/24)+1), HoursCarriedOver, IFERROR(TotalHoursCarriedOver -
((DaysCarriedOver-1) * (8/24)),0),
EstCompleteDate, IF(StartTime + JobTime <= MaxEndTime, StartDayTime + JobTime, WORKDAY.INTL( StartDayTime,
DaysCarriedOver, 1, HOLIDAYLIST) + HoursCarriedOver + 6/24),
EstCompleteDate)

(edit after post: each line seems to rejustify to far left margin, so I could not make it super clear. But the syntax of LET is variable comma calculation of variable. The repeating of the variable "EstCompletionDate" at the end tells the funcition to print that variable.)
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,393
Members
449,081
Latest member
JAMES KECULAH

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