Excluding hours for processing time

HannahNeedsHelp

New Member
Joined
Jul 7, 2017
Messages
15
Hello,

Trying to exclude non-working hours from the calculation of processing time by employees. Keep getting Name errors using this formula:
=Networkdays (Received, Processing End)-1)*(Stop time-Start time)+IF (NETWORKDAYS(Processing End, Processing End), MEDIAN(MOD (Processing End,1),Stop time, Start time),Stop time)-MEDIAN (NETWORKDAYS (Received, Received)*MOD (Received,1),Stop time,Start time)

Categories are:
Received (time we get the request)
Processing End (time it's completed)
Start time 8:00
End time 11:00 pm
(Want to exclude 11pm-8am from calculation as these are non working hours.

Thanks!
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
How are you entering in your Received and Processing End times/dates? Are there two separate cells: 1 for the time and 1 for date?
 
Upvote 0
Try naming your cells like Processing_End and using this formula:

=(NETWORKDAYS(Received,Processing_End)-1)*(End_time-Start_time)+IF(NETWORKDAYS(Processing_End,Processing_End),MEDIAN(MOD(Processing_End,1),End_time,Start_time),End_time)-MEDIAN(NETWORKDAYS(Received,Received)*MOD(Received,1),End_time,Start_time)
 
Upvote 0
Got rid of the name error by renaming cells as suggested, but now getting an error that there's a problem with the formula. Am I missing parenthesis somewhere?

Thanks so much!
 
Upvote 0
This is how I'm entering it, and it's sayin missing opening or closing parenthesis.

=(NETWORKDAYS(Received,Processing_End)-1)*(End_time-Start_time)+IF(NETWORKDAYS(Processing_End,Processing_End),MEDIAN(MOD(Processing_End,1),End_time,Start_time),End_time-MEDIAN(NETWORKDAYS(Received,Received)*MOD(Received,1),End_time,Start_time)
 
Upvote 0
There is a missing closing parenthesis just before the last -MEDIAN(...
Just copy-and-paste the formula from Post #4.
 
Upvote 0
Got rid of the name error by refercing the cells, rather than names. But the formula isn't factoring in those processong times that are over 24 hrs.

Ex:
Received 19:55:00 on 5/31
Processed 22:41:00 on 6/1.
Formula shows it took 1:46:00, but it should be 16:46:00.

Advice?
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,707
Members
448,981
Latest member
recon11bucks

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