Calculating response time including weekends? Use network days?

stephenohear

New Member
Joined
Aug 28, 2017
Messages
5
Hi good folks. Greetings from Scotland.
I have a question regarding network days, I've searched the forum but cant find an answer that is looks right.
In the table below I'm trying to calculate the response between the 2 times below, based on a working day of 08:00 to 18:00, and should include weekends.
So as below, call is logged on Friday 5th at 08:50am (cell A1) and closed on the Tuesday at 13:50pm (cell B1).
I'm using excel 2016.
Any assistance would be most appreciated.
Thanks.
[TABLE="width: 500"]
<tbody>[TR]
[TD]05/01/2018 08:50:37[/TD]
[TD]09/01/2018 13:50:37[/TD]
[TD]Formula??[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi thanks for the reply. I'm looking for the answer to be in Hh:mm format.
I mooched around the forums and found one that would calculate in hours and minutes based on working 8am to 18.00pm Monday to Friday, so basically, i'm looking for the same that would be Monday to Sunday inclusive.
Formula is below, were B2 is time of logging, and J2 is time of closing. I've formatted the target cell to be time > English (US) > 13:30

=(NETWORKDAYS(B2,J2)-1)*("18:00"-"8:00")+IF(NETWORKDAYS(J2,J2),MEDIAN(MOD(J2,1),"18:00","8:00"),"18:00")-MEDIAN(NETWORKDAYS(B2,B2)*MOD(B2,1),"18:00","8:00")

Anyone have any ideas to solve this?
 
Upvote 0
NETWORKDAYS is the number of (normal) working days between 2 dates.

DAYS is the number of days between 2 dates. i.e. If the formula that you posted above works except for weekends then replace NETWORKDAYS with DAYS.

(Have not tested it)
 
Upvote 0
Tried it this morning and got the dreaded #########
original was:
=(NETWORKDAYS(B2,J2)-1)*("18:00"-"8:00")+IF(NETWORKDAYS(J2,J2),MEDIAN(MOD(J2,1),"18:00","8:00"),"18:00")-MEDIAN(NETWORKDAYS(B2,B2)*MOD(B2,1),"18:00","8:00")

Changed to:
=(DAYS(B2,J2)-1)*("18:00"-"8:00")+IF(DAYS(J2,J2),MEDIAN(MOD(J2,1),"18:00","8:00"),"18:00")-MEDIAN(DAYS(B2,B2)*MOD(B2,1),"18:00","8:00")
but its fell over.
Is it anything to do with the median do you think?
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,304
Members
452,633
Latest member
DougMo

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