Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 1000

Excluding hours in Excel

$
0
0

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_ti‌​me) + IF(NETWORKDAYS(P‌​rocessing_End, Proces‌​sing_End),     MEDIAN(MOD‌​(Processing_End,1), E‌​nd_time, Start_time),‌​End_time) -  MEDIAN(NET‌​WORKDAYS(Received,Re‌​ceived) *  MOD(Received‌​,1), End_time, Start_t‌​ime)

How can I do this?


Viewing all articles
Browse latest Browse all 1000

Trending Articles