# Net Work Hours between two dates

#### diggerdidoodar

##### Board Regular
Found this wonderful example of Net work hours between dates. I need to now know now how I can modify this formula to allow me to add a set time value of say 7 hrs to cell a6 so I get result 25/02/2019 07:00 etc etc. Hope that makes sense.

B2 = 2pm
A2 = 6am
A6 = 22/02/2019 08:00
B6 = 25/02/2019 10:10

\$Start_Time \$End_Time
6:00:00 AM 2:00:00 PM

Start Date End Date Net Work Hours (Decimal) Net Work Hours (H:mm)
22/02/2019 10:10 25/02/2019 10:10 8.00 08:00
22/02/2019 08:00 25/02/2019 10:10 =IF(OR(\$B\$2<\$A\$2,B6<A6),0,(NETWORKDAYS(A6,B6,HolidayList)-(NETWORKDAYS(A6,A6,HolidayList)*IF(MOD(A6,1)>\$B\$2,1,(MAX(\$A\$2,MOD(A6,1))-\$A\$2)/(\$B\$2-\$A\$2)))-(NETWORKDAYS(B6,B6,HolidayList)*IF(MOD(B6,1)<\$A\$2,1,(\$B\$2-MIN(\$B\$2,MOD(B6,1)))/(\$B\$2-\$A\$2))))*(\$B\$2-\$A\$2)*24)

### Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Replies
5
Views
246
Replies
5
Views
55
Replies
6
Views
1K
Replies
8
Views
360
Replies
10
Views
352

1,196,073
Messages
6,013,267
Members
441,758
Latest member
Abren

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