Need to calculate start date

Novice86

New Member
I have a table to track machine hours needed and the date and hour an order is due. I'd like excel to return required start date and time in a cell. My workweek starts at 12am on Sunday and ends at 8pm on Friday. Due date is in column E, runtime hours in column f, I need required start date in column H. Example would be (column e) order due 3/21/16 7am, (column f) runtime 52 hours.

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

RCBricker

Well-known Member
if you format column F so the data is entered in hh:mm:ss then all you need is a sum in column H

column e is 38/21/2016 7:00
column f is 52:00:00

then

column H is =E3+F3

and it returns 03/23/2016 11:00

Novice86

New Member
I need to subtract working day hours only. This sum function would include Saturday, Sunday, and hours we are not working on Friday night?

RCBricker

Well-known Member
always round hours for runtime? no minutes or seconds correct?

Correct.

RCBricker

Well-known Member
I need to subtract working day hours only. This sum function would include Saturday, Sunday, and hours we are not working on Friday night?

try this out

Code:
``````=IF(OR(WEEKDAY(E2-SUM(F2/24),2)=7,WEEKDAY(E2-SUM(F2/24),2)=6),E2-
SUM(SUM(SUM(F2-HOUR(E2))+52)/24),
SUM(E2-SUM(F2/24)))``````

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,632
Messages
5,838,470
Members
430,549
Latest member
jayjay2022

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.

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

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