# 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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

#### 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)))``````

Replies
1
Views
68
Replies
5
Views
47
Replies
0
Views
101
Replies
3
Views
107
Replies
1
Views
195

1,126,972
Messages
5,621,901
Members
415,864
Latest member
cybid

### 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.

### Which adblocker are you using?

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