+ Reply to Thread
Results 1 to 4 of 4

Calculating handling times between two dates, in hours, excluding holidays/weekends

  1. #1
    Registered User
    Join Date
    08-02-2012
    Location
    Europe
    MS-Off Ver
    Excel 2013/365
    Posts
    24

    Calculating handling times between two dates, in hours, excluding holidays/weekends

    Hi,

    I'm trying to calculate service level handling times on a set of incoming reports I receive. The number of hours:minutes between a "Created Date" and a "Resolved Date". While also excluding Saturday-Sunday weekends and specific holiday days in the cumulative totals. The business hours equal to 07:00AM to 19:00PM Monday-Friday. The "Created Date" in my case can be on Saturday-Sundays and the holiday days. Effectively the reports are generated 24/7 but will only be 'handled' during weekday business hours.

    This thread from mrcexcel.com got me well on my way using =NETWORKDAYS.

    I'm currently using this formula
    Please Login or Register  to view this content.
    A2 = Created Date
    B2 = Resolve Date
    E2-E7 = Holidays

    But it seems it's not properly calculating the handling times in some cases. The formula just returns a set of "########"

    I've attached an example workbook with my date data, I'm looking for insight in to why the few "########" entries happen and how to fix them.
    I'm using Excel 365 and European date formatting for reference.
    Attached Files Attached Files
    Last edited by Tunesmith; 04-17-2015 at 08:46 AM. Reason: Solved

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: Calculating handling times between two dates, in hours, excluding holidays/weekends

    Take for instance C927. The times are only 8 minutes apart and both times are outside your working hours. If I change the time in cell B927 to 8:21 I get 1:21.
    I haven't studied the formula so I don't know how it works, but it seems to be creating a negative number which is why you are getting the ##'s.

    EDIT:
    I believe I have worked out a solution for you.

    In C2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    If your original request is fulfilled please click the Thread Tools drop down box above your first post and choose solved.


    If you are happy with my help, please consider clicking the add reputation button in the lower left hand corner of this post.
    Last edited by skywriter; 04-16-2015 at 02:26 PM.

  3. #3
    Registered User
    Join Date
    08-02-2012
    Location
    Europe
    MS-Off Ver
    Excel 2013/365
    Posts
    24

    Re: Calculating handling times between two dates, in hours, excluding holidays/weekends

    Thank you very much, it does indeed looks like that formula tweak fixed it.

  4. #4
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: Calculating handling times between two dates, in hours, excluding holidays/weekends

    Thank you for the rep. points, the feedback and marking the thread as solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 13
    Last Post: 07-20-2016, 02:05 AM
  2. Replies: 0
    Last Post: 01-30-2014, 01:22 AM
  3. Replies: 7
    Last Post: 06-19-2013, 05:45 AM
  4. [SOLVED] Calulating Time Between Two Dates/Times but Excluding Weekends and Holidays
    By randers1984 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2013, 10:24 AM
  5. Replies: 7
    Last Post: 01-11-2011, 06:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1