Need to calculate start date

Novice86

New Member
Joined
Jul 18, 2015
Messages
13
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
Joined
Feb 4, 2003
Messages
1,560
if you format column F so the data is entered in hh:mm:ss then all you need is a sum in column H

so (as per your example)

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
Joined
Jul 18, 2015
Messages
13
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
Joined
Feb 4, 2003
Messages
1,560
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)))
 
Master Excel Bundle

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.

Forum statistics

Threads
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.
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
Top