+ Reply to Thread
Results 1 to 8 of 8

Calculate working hours for a Helpdesk SLA report

  1. #1
    Registered User
    Join Date
    01-13-2015
    Location
    UK
    MS-Off Ver
    Office 2013
    Posts
    5

    Calculate working hours for a Helpdesk SLA report

    Hi All,

    Having spent a few hours trawling through forums and experimenting, I come humbly to you experts! I did consider putting this in the basic/excel general subforum, apologies if I chose poorly by going for this one.

    I have the following fields:

    A2:A100 - date/time that a helpdesk ticket opened
    B2:B100 - date/time that the same tickets were closed (so A2 is open date and b2 is close date of that single ticket)
    D2 - start time of each working day (8.30)
    E2 - end time of each working day (17:00)
    G2:G5 - holidays

    I want to see the time difference between start and end date (columns A and B) in HH:MM

    I have been trying with the NETWORKDAYS function, which seems to work for most dates, but falls over on the odd one e.g. where the open and close date/times are outside of the normal working period e.g. opened at 9pm and closed at 9.10pm on the same day, or opened on 26th Dec 2014 (which is included as part of the holidays range)

    Your help is greatly anticipated and appreciated!!

    Thanks
    Mark

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Calculate working hours for a Helpdesk SLA report

    Hello Mark, try this formula for row 2 copied down

    =(NETWORKDAYS(A2,B2,G$2:G$5)-1)*(E$2-D$2)+IF(NETWORKDAYS(B2,B2,G$2:G$5),MEDIAN(MOD(B2,1),D$2,E$2),E$2)-MEDIAN(NETWORKDAYS(A2,A2,G$2:G$5)*MOD(A2,1),D$2,E$2)

    Format result cell with this custom format

    =[h]:mm
    Audere est facere

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,639

    Re: Calculate working hours for a Helpdesk SLA report

    have yoiu checked this:
    http://www.excelforum.com/excel-form...end-hours.html
    and this: http://www.excelforum.com/non-englis...werkdagen.html
    Best Regards,

    Kaper

  4. #4
    Registered User
    Join Date
    01-13-2015
    Location
    UK
    MS-Off Ver
    Office 2013
    Posts
    5

    Re: Calculate working hours for a Helpdesk SLA report

    Hello there, wow quick response! Thank you - I'll try it and let you know

  5. #5
    Registered User
    Join Date
    01-13-2015
    Location
    UK
    MS-Off Ver
    Office 2013
    Posts
    5

    Re: Calculate working hours for a Helpdesk SLA report

    Hi Kaper, I did have a look at those, but I am afraid my ignorance prevented me from getting them to work as I needed. Daddylonglegs has kindly provided a formula which I am testing now

    Thanks
    Mark

  6. #6
    Registered User
    Join Date
    01-13-2015
    Location
    UK
    MS-Off Ver
    Office 2013
    Posts
    5

    Re: Calculate working hours for a Helpdesk SLA report

    Hi DaddyLongLegs, I am getting some results which I can't understand. For example, with a start and end date of 03/12/2014 13:57 10/12/2014 12:43 respectively, the formula gives me a result of 17:16 which I take to be 17 hours 16 mins? that dates mentioned don't include any of the 'holiday' ones in the G column so I am not sure where it is getting this figure from?

    Thanks
    Mark

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Calculate working hours for a Helpdesk SLA report

    Hello Mark,

    that sounds like a formatting issue. If you format as hh:mm then you will only see times up to 23:59, any time above that will just show the leftover portion after you have taken out multiples of 24 hours, so, as per my first reply....

    Quote Originally Posted by daddylonglegs View Post
    Format result cell with this custom format

    =[h]:mm
    You need to have the "square brackets".

    .....then the result for your example should display correctly as 41:16 (24:00+17:16)

  8. #8
    Registered User
    Join Date
    01-13-2015
    Location
    UK
    MS-Off Ver
    Office 2013
    Posts
    5

    Re: Calculate working hours for a Helpdesk SLA report

    Hit. Nail. Head.

    Works like a charm! Thank you so much for helping me out so quickly. Much appreciated

    Thanks
    Mark

+ 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. [SOLVED] Calculate time for working hours when start time falls outside of working hours
    By SKDY_Beau in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-20-2014, 12:50 PM
  2. [SOLVED] How To Calculate Hours Between 2 or 3 Days Exclude Non Working Hours?
    By Fazrullah Jaini in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-03-2014, 09:54 AM
  3. [SOLVED] Calculate hours with predefined Working Hours and Weekend Hours
    By garciapliz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-05-2013, 11:17 AM
  4. Replies: 2
    Last Post: 06-14-2013, 10:45 AM
  5. Replies: 7
    Last Post: 03-31-2013, 03:09 PM

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