Networking Days - Different Hours on friday

NicB

New Member
Joined
Feb 15, 2021
Messages
7
Office Version
  1. 365
Platform
  1. Windows
HI Guys

Please help - I would like to calculate the number of hours using holiday range

We work Monday to Thursday 8 - 16:00 (1 hour already deducted for lunch)
and Fridays 7 - 13:00 (1 hour already deducted for lunch)

How do i add the friday hours?

=(NETWORKDAYS(D14,I14,$L$6:$L$20)-1)*("16:00"-"8:00")+IF(NETWORKDAYS(I14,I14),MEDIAN(MOD(I14,1),"16:00","8:00"),"16:00")-MEDIAN(NETWORKDAYS(D14,D14)*MOD(D14,1),"16:00","8:00")
 
HI there

thank you so much for all the replies :)

F17 formula i got the same as you
G17 and H17 - i keep getting
2.29930556 - is this an array
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
HI there

thank you so much for all the replies :)

F17 formula i got the same as you
G17 and H17 - i keep getting
2.29930556 - is this an array
Sorry i was being blonde just needed to change the format on the cell - seems to be working spot on!

You guys are rock stars thank you
 
Upvote 0
use the updated formula that takes into account Friday start and finish as shwon below.

((NETWORKDAYS.INTL((A1+1),(B1-1),"0000111"))*8/24+(NETWORKDAYS.INTL((A1+1),(B1-1),"1111011"))*6/24)+IF(WEEKDAY(B1)=6,MEDIAN(8/24,MOD(B1,1),13/24)-MIN(8/24,13/24),MEDIAN(8/24,MOD(B1,1),13/24)-MIN(8/24,16/24))+IF(WEEKDAY(A1)=6,MAX(8/24,13/24)-MEDIAN(8/24,MOD(A1,1),13/24),MAX(8/24,16/24)-MEDIAN(8/24,MOD(A1,1),16/24))


View attachment 32312

Kind regards

Saba
HI Saba

thanks so much - i have hit a snag tho. If it is completed under 8 hours it returns a negative value
05/01/2021 10:2706/01/2021 08:11
#########​
 
Upvote 0
Hi Saba
thanks for the calc. But i have hit a snag when it comes to Hours that are under 8
EG Below - gives me a negative value
2021/01/27 09:192021/01/28 14:48########
 
Upvote 0

Forum statistics

Threads
1,215,863
Messages
6,127,391
Members
449,382
Latest member
DonnaRisso

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