+ Reply to Thread
Results 1 to 15 of 15

Need Formula to calculate TAT

  1. #1
    Registered User
    Join Date
    02-22-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    11

    Need Formula to calculate TAT

    Hello,

    I need to calculate a TAT formula for the below case

    P1 -- 1 Hour
    P2 -- 2 Hour
    P3 -- 4 Hour
    P4 -- 8 Hour

    Shift Start time : 6:30pm
    Shift End Time : 3:30am

    Suppose a request comes at 9:30pm and it is Priority 1 (P1) then it should be completed at 9:30pm + 1 hour = 10:30pm. I have given the below formula to execute this

    =IF(A2="P1",1,IF(A2="P2",2,IF(A2="P3",4,IF(A2="P4",8,0))))

    =B2+(TIME(D2,0,0))

    The problem here is if the request is P4 then its 8 hr TAT and the formula will calculate the time as 5:30am. Since the shift time end at 3:30am itself the actual TAT should be the next day 8:30pm.

    Please suggest the formula to calculate the TAT which includes the start time and end time and also excludes the weekends and holidays.


    Regards
    Jack
    Attached Files Attached Files
    Last edited by jag_nat; 02-22-2014 at 02:16 PM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,598

    Re: Need Formula to calculate TAT

    If only I knew what a TAT is ? Please do not use words not everyone understands - Thx

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

    Re: Need Formula to calculate TAT

    Duplicate post!
    Last edited by bebo021999; 02-22-2014 at 02:14 PM.
    Quang PT

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

    Re: Need Formula to calculate TAT

    I am confusing with:
    The problem here is if the request is P4 then its 8 hr TAT and the formula will calculate the time as 5:30am. Since the shift time end at 3:30am itself the actual TAT should be the next day 7:30pm.
    5h30am-3h30am = 2h00 should be left for next shift which start at 6h30 pm => end time should be 6h30pm+2 = 8h30pm , why you expect it to be at 7h30pm?

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

    Re: Need Formula to calculate TAT

    Assuming your holiday listed in J1:J5
    In C2:
    Please Login or Register  to view this content.
    Last edited by bebo021999; 02-22-2014 at 02:18 PM.

  6. #6
    Registered User
    Join Date
    02-22-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Need Formula to calculate TAT

    TAT means Turn Around Time i.e, the time within which we need to complete the request.

    Yes bebo021999. you are right. It should be 8:30 pm only. I have edited it now. Thank you.

  7. #7
    Registered User
    Join Date
    02-22-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Need Formula to calculate TAT

    Thank you very much bebo021999. The formula is working for P4 9:46pm, however its not working if we give P1 and 3:00am. Its displaying as 02/23/2014 4:00am whereas it should be displayed as 02/24/2014 7:00m

    Priority Received Time Due At Hrs
    P1 2/22/14 3:00 AM 2/23/14 4:00 AM 1

    Could you please help again.


    Regards
    Jagadishan N.

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

    Re: Need Formula to calculate TAT

    So there is the case that actual start time is earlier than 6:30 PM.
    Now to chance B2 to MAX(B2,INT(B2)+6.5/24)
    Please Login or Register  to view this content.
    Does it work?

  9. #9
    Registered User
    Join Date
    02-22-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Need Formula to calculate TAT

    The second last step in the formula resulted in an error. This part +WORKDAY.INTL(B2,1,1,$J$1:$J$5)

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

    Re: Need Formula to calculate TAT

    Which time which you 'd chosen and got error? How you think it come from that part?

  11. #11
    Registered User
    Join Date
    02-22-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Need Formula to calculate TAT

    Attached is the sheet with your formula applied and the error.
    Attached Files Attached Files

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

    Re: Need Formula to calculate TAT

    As I said before in #5:
    Quote Originally Posted by bebo021999 View Post
    Assuming your holiday listed in J1:J5
    so you must adapt to your new range J2:J8
    Please Login or Register  to view this content.
    Anyway, I am so confused with your list of Holiday and guess it is included with weekends. WEEKDAY.INTL(B2,2,1...) itself include Sat and Sun with parameter 1. So J2:J8 contains holiday only instant Jul-4th, Jan-1st,...

  13. #13
    Registered User
    Join Date
    02-22-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Need Formula to calculate TAT

    I thought to include holidays for the month of Feb alone. Since there is no holiday i included Sat and Sun.

    The formula is retrieving a time however its not correct. Its displaying as 02/23/2014 7:30AM whereas it should be displayed as 02/24/2014 7:00PM

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

    Re: Need Formula to calculate TAT

    So try to replace 6.5 with 18.5 in my previous formula:
    Please Login or Register  to view this content.

  15. #15
    Registered User
    Join Date
    02-22-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Need Formula to calculate TAT

    I changed "6.5" to "18.5" in the formula and it retrieved me 02/23/2014 7:30PM. Previously it was displaying as 02/23/2014 7:30AM.

    It should display actually 02/24/2014 7:30PM. What i need to change in the formula further.

    Please advice

+ 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: 3
    Last Post: 03-28-2013, 12:41 PM
  2. Replies: 1
    Last Post: 02-02-2013, 02:28 PM
  3. Simplifying a formula: Consolidate formula to calculate SLA
    By Jennasis in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-29-2012, 06:27 AM
  4. Calculate formula in VBA instead of formula in workbook
    By Jessica.Bush in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-11-2010, 04:09 PM
  5. a formula which is calculate 4-5 dates formula in one cell
    By wasim.qureshi in forum Excel General
    Replies: 3
    Last Post: 10-08-2009, 12:38 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