+ Reply to Thread
Results 1 to 18 of 18

TAT Calculation within support HRs including saturday & Sunday

  1. #1
    Registered User
    Join Date
    09-04-2015
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    15

    TAT Calculation within support HRs including saturday & Sunday

    hi team,


    i need to caclculate the tat between 2 times condition is.

    Supoprt Hrs: 7:00:00 AM 22:00:00 PM
    7 days a Week(in should consider Saturday and Sunday also)

    regards
    Ravi GH

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: TAT Calculation within support HRs including saturday & Sunday

    Hi
    Try this
    =INT(B1-A1)*15+MOD(B1-A1,1)*24
    where A1 is the first date and B1 the second date.

  3. #3
    Registered User
    Join Date
    09-04-2015
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    15

    Re: TAT Calculation within support HRs including saturday & Sunday

    hi thanks for ur time but its not excluding the off business hrs

    ex. strt time 3/13/2016 6:00:00 PM
    end time 3/14/2016 8:00:00 AM


    manually if i calculate its 2 hrs but as per your formula its 14 hrs
    support hrs is only 7:00 am to 10:00 pm.

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: TAT Calculation within support HRs including saturday & Sunday

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

  5. #5
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: TAT Calculation within support HRs including saturday & Sunday

    Hi Ravi,

    Try following links where you such queries are already resolved..

    HTML Code: 
    HTML Code: 
    HTML Code: 
    Thanks,
    Anil Dhawan


    Click *Add Reputation to say "Thanks" and don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved) if you are satisfied.

    Don't stop when you are tired. STOP when you are done!

  6. #6
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: TAT Calculation within support HRs including saturday & Sunday

    Quote Originally Posted by José Augusto View Post
    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hi Jose,

    Will it work when you have "03/13/2016 8:00 AM" in A1 and "03/14/2016 8:00 AM"? Because with the provided solution, it will return 30 instead of 15..

  7. #7
    Registered User
    Join Date
    09-04-2015
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    15

    Re: TAT Calculation within support HRs including saturday & Sunday

    hi IF both dat and time are same it should give 0 but its giving 15

  8. #8
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: TAT Calculation within support HRs including saturday & Sunday

    Hi
    Sorry for my mistake
    try the following (where 9 is the number of hours between 22:00 and 7:00)
    =(B1-A1)*24-(MOD(A1,1)>MOD(B1,1))*9*(INT(B1)-INT(A1))

  9. #9
    Registered User
    Join Date
    09-04-2015
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    15

    Re: TAT Calculation within support HRs including saturday & Sunday

    hi

    start time: 3/13/2016 11:00:00 PM
    end time: 3/14/2016 10:00:00 AM
    as per this example the result should be 3 Hrs but as per ur formula its 2hrs

    support window is 7:00 am to 10:00 PM

  10. #10
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: TAT Calculation within support HRs including saturday & Sunday

    Use
    =(B4-A4)*24-(MOD(A4,1)>MOD(B4,1))*9*(INT(B4)-INT(A4))+(OR(MOD(A4,1)>22/24,MOD(A4,1)<7/24)*(MOD(A4,1)-22/24)*24)
    to correct the start time in the range 22:00 to 07:00.
    End time is possible in that range?
    Last edited by José Augusto; 03-17-2016 at 08:21 AM.

  11. #11
    Registered User
    Join Date
    09-04-2015
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    15

    Re: TAT Calculation within support HRs including saturday & Sunday

    sorry still am facing some challenge

    3/13/2016 7:00:00 AM
    3/13/2016 7:00:00 PM
    but ur formula gives -3
    also if i give same day
    3/13/2016 7:00:00 AM
    3/13/2016 10:00:00 PM
    it gives 0

  12. #12
    Registered User
    Join Date
    09-04-2015
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    15

    Re: TAT Calculation within support HRs including saturday & Sunday

    hi team can some one help on this...

  13. #13
    Registered User
    Join Date
    09-04-2015
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    15

    Re: TAT Calculation within support HRs including saturday & Sunday

    hi any thanks for this but all those link talk about excluding Saturday and Sunday but my requirement is 7 days a week and support hrs should be 7:00 am to
    10:00 pm

  14. #14
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,645

    Re: TAT Calculation within support HRs including saturday & Sunday

    How about:

    Please Login or Register  to view this content.
    Quang PT

  15. #15
    Registered User
    Join Date
    09-04-2015
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    15

    Re: TAT Calculation within support HRs including saturday & Sunday

    hi je suit thank you i taught it worked almost but i see few correction need to be done for the below dates its giving 0:00 any idea why..?

    these are few sample but i found this for many.

    02/29/2016 08:00:00 AM 02/29/2016 01:00:00 PM 0:00
    02/29/2016 08:44:04 AM 02/29/2016 05:17:29 PM 0:00
    02/29/2016 09:13:37 AM 02/29/2016 04:53:35 PM 0:00
    02/29/2016 09:52:48 AM 02/29/2016 05:14:34 PM 0:00
    02/29/2016 10:03:25 AM 02/29/2016 06:04:59 PM 0:00
    03/01/2016 07:12:12 AM 03/01/2016 01:46:02 PM 0:00
    03/01/2016 08:29:08 AM 03/01/2016 05:12:54 PM 0:00
    03/01/2016 08:39:03 AM 03/01/2016 03:24:01 PM 0:00

  16. #16
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,175

    Re: TAT Calculation within support HRs including saturday & Sunday

    Quote Originally Posted by ravigh18 View Post
    support hrs should be 7:00 am to
    10:00 pm
    You can use this formula:
    =(INT(B1)-INT(A1))*($E$1-$D$1)+MIN(MAX($D$1,MOD(B1,1)),$E$1)-MIN(MAX($D$1,MOD(A1,1)),$E$1)
    Cell D1: = 7:00 AM
    Cell E1: = 10:00 PM
    Last edited by Phuocam; 03-18-2016 at 07:43 PM.

  17. #17
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,645

    Re: TAT Calculation within support HRs including saturday & Sunday

    Quote Originally Posted by ravigh18 View Post
    hi je suit thank you i taught it worked almost but i see few correction need to be done for the below dates its giving 0:00 any idea why..?

    02/29/2016 08:00:00 AM 02/29/2016 01:00:00 PM 0:00
    02/29/2016 08:44:04 AM 02/29/2016 05:17:29 PM 0:00
    It works for me.
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    09-04-2015
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    15

    Re: TAT Calculation within support HRs including saturday & Sunday

    Thanks this works fine,,,

+ 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. Business hour calculation between two dates including first and third Saturday.
    By Victor_Prime in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-29-2015, 04:00 AM
  2. [SOLVED] If Saturday, +2. If Sunday, +3
    By DavidRoger in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-16-2015, 04:11 AM
  3. Locate Saturday and Sunday
    By boldcode in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2015, 01:33 PM
  4. Using Excel 2007 - Conditional time calculation including Saturday
    By Sahil Khan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-24-2014, 07:25 AM
  5. How to exculde saturday and sunday in date calculation?
    By Thinker8 in forum Excel General
    Replies: 4
    Last Post: 10-05-2013, 12:26 PM
  6. Conditional time calculation including Saturday in excel 2007
    By sahil_123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-06-2013, 03:58 AM
  7. [SOLVED] Formula for Last 30 Days Excluding Saturday, but including Sunday
    By AlphaSkidz in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-08-2013, 02:23 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