I'm trying to calculate the processing timefrom time received to time completed, and I need to exclude the hours of11 pm - 8 am because they're non-working hours. I tried playing with the NETWORKDAYS
function but couldn't figure it out.
Categories are:
- Received
- Processing End (time completed)
- Start time (8:00am)
- End time (11:00pm)
This is what I have tried so far, but it throws error:
=(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)
How can I do this?