Net Work Hours between two dates

diggerdidoodar

Board Regular
Joined
May 20, 2002
Messages
59
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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,215,022
Messages
6,122,726
Members
449,093
Latest member
Mnur

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