+ Reply to Thread
Results 1 to 4 of 4

Help needed : Calculating SLA only for office hours

  1. #1
    Registered User
    Join Date
    10-03-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    67

    Help needed : Calculating SLA only for office hours

    Hi all,

    I need an help to calculate SLA by considering office hours only. As of now i'm using this formula =WORKDAY(A2,2,DATE(YEAR(A2),{12,13},{25,1}))+MOD(A2,1) which is calculating non-working hours also.

    My office timings are from 09:00AM to 18:00PM.

    Any help would be appreciated!!

    Elango

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

    Re: Help needed : Calculating SLA only for office hours

    So your formula is adding 2 working days to a date/time in A2 (excluding some holidays)

    How do you want that to be different? It would be helpful if you could give some examples:

    can A2 be outside working hours? Can you give required results for some sample values?
    Audere est facere

  3. #3
    Registered User
    Join Date
    10-03-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Help needed : Calculating SLA only for office hours

    Hi Daddylonglegs,

    When i posted yesterday my page was expired, so only i started new thread.

    can A2 be outside working hours? Yes it will be anytime i receive ticket.

    Can you give required results for some sample values - Here you go,

    Received time : 8/29/2014 12:39:10 AM
    SLA time : 9/2/2014 12:39:10 AM(It was technically wrong which is whole 48 hours)

    I want to calculate SLA only from 09:00AM to 18:00PM

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,706

    Re: Help needed : Calculating SLA only for office hours

    Quote Originally Posted by Elangovan89 View Post
    Received time : 8/29/2014 12:39:10 AM
    SLA time : 9/2/2014 12:39:10 AM
    OK for that example what do you expect the result to be, 9/2/2014 at 09:00?......or should it be 9/1/2014 at 18:00?

    You can try this version to get the former

    =WORKDAY(A2-1,3,DATE(YEAR(A2),{12,13},{25,1}))+MEDIAN(MOD(A2,1),"9:00","18:00")

  5. #5
    Registered User
    Join Date
    10-03-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Help needed : Calculating SLA only for office hours

    Hello,

    That was a gem thanks a lot!!!

    Could you please tell me where i can learn formulas with different scenarios? It will be great if I am able to get solution on my own.

    Any suggestions?

    Elango

+ 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 actual hours worked only in core hours
    By Val C in forum Excel General
    Replies: 3
    Last Post: 02-27-2013, 01:54 AM
  2. Replies: 7
    Last Post: 07-25-2012, 09:14 AM
  3. Timesheet formula for calculating ordinary hours and overtime hours.
    By zoen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-18-2011, 04:23 AM
  4. Replies: 1
    Last Post: 11-29-2011, 12:19 AM
  5. Calculating number of hours greater than 24 hours
    By colleen8580 in forum Excel General
    Replies: 1
    Last Post: 07-29-2009, 05:25 PM

Tags for this Thread

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