+ Reply to Thread
Results 1 to 4 of 4

Help needed: SLA & Turnaround Time Calculation

  1. #1
    Registered User
    Join Date
    11-17-2015
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    3

    Help needed: SLA & Turnaround Time Calculation

    Hi there

    I am trying to find the working hours (9am to 5pm) taken to process a ticket at a processing centre, excluding weekends and public holidays. I have start time(Column P), end time (Column Q), and the formula I am using is

    =IF(Q2=0, "", (NETWORKDAYS(P2,Q2,Holiday!$H$3:$H$16)-1)*("17:00"-"09:00")+IF(NETWORKDAYS(Q2,Q2,Holiday!$H$3:$H$16),MEDIAN(MOD(Q2,1),"17:00","09:00"),"17:00")-MEDIAN(NETWORKDAYS(P2,P2,Holiday!$H$3:$H$16)*MOD(P2,1),"17:00","09:00"))

    The formula seems to be working perfectly fine but my boss would like me to explain what it is doing. Can anyone please help me?

    Thanks!!

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Help needed: SLA & Turnaround Time Calculation

    Hi,

    It seems a complicated formula and I'm by no means clear why the Median is relevant.
    Can you upload the workbook with some examples so that we can examine further, and explain of possible why the use of Median might be relevant?

    You mention start and end times, Do you literally mean time only, i.e. no date, or do these P2 & Q2 cells contain a complete date/time number?

    The Networkdays bit strips out the number of non working days, which to Excel means Saturdays and Sundays, and the Holiday!H3:H16 reference is to a table of public holidays which are also excluded from the calculation
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    11-17-2015
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Help needed: SLA & Turnaround Time Calculation

    Hi Richard

    Thanks for your reply!
    P2 and Q2 contain a complete date/time.

    I got the formula from this thread http://www.excelforum.com/excel-form...-holidays.html and I am having problems understanding the median and mod and what this formula is doing.

    Can you please help me? Thank you so much!

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Help needed: SLA & Turnaround Time Calculation

    Hi,

    I don't know why the Median function is in there but try this shorter formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The formula uses NETWORKDAYS() to determine the absolute number of days between the two dates and multiplies this by 8 being the number of hours between 9:00 and 17:00

    It then uses
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    to work out the number of hours on the first day between the start time and 9:00 and deducts this number of hours if this calc is positive.
    It then uses the similar
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    to deduct the number of hours between the the end time and 17:00 and deducts this number.

+ 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. Calculating Turnaround Time
    By jmcconville18 in forum Excel General
    Replies: 8
    Last Post: 09-19-2014, 03:03 PM
  2. Computing turnaround time down to minutes/seconds
    By hypothetical in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-16-2014, 05:25 PM
  3. Time calculation help needed
    By frustrated in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-05-2013, 07:16 PM
  4. Turnaround time with work hours - IT Help Desk
    By egiovia in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-18-2013, 02:36 PM
  5. Help computing turnaround time for night shift
    By hypothetical in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-01-2013, 10:37 AM
  6. [SOLVED] Working out Turnaround Time based on three dates/times
    By david1987 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-11-2012, 12:54 PM
  7. [SOLVED] Calculate turnaround time for 9pm-6am working time & Start/End date may be on weekend
    By Wauiwa in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-26-2012, 02:36 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