+ Reply to Thread
Results 1 to 6 of 6

Formula for Date/time to calculate turnaround time

  1. #1
    Registered User
    Join Date
    04-10-2018
    Location
    Ontario
    MS-Off Ver
    2016
    Posts
    35

    Formula for Date/time to calculate turnaround time

    Hi Everyone,

    Looking to create a formula to calculate the turnaround time based on the time/date in and time/date out. And if possible an easy way to pull the data from the turnaround column into the following timeslot columns 1-4hrs, 4-8hrs, 8-24hrs, greater than 24 hours.

    I have attached an example

    Thank you for the help.
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula for Date/time to calculate turnaround time

    Try this in E2:

    =(D2+C2)-(B2+A2)
    Formatted as Custom [h]:mm

    I don't understand what you are expecting for columns F through I.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula for Date/time to calculate turnaround time

    If you want to put an x into the correct column for each row, you can do that like this:

    1 to 4 hours (I would change this to 0 to 4):
    F2 =IF(AND(E2>=TIME(1,0,0),E2<=TIME(4,0,0)),"x","")
    If you change this to 0 to 4, replace TIME(1,0,0) with 0.

    4 to 8 hours:
    G2 =IF(AND(E2>TIME(4,0,0),E2<=TIME(8,0,0)),"x","")

    8 to 24 hours:
    H2 =IF(AND(E2>TIME(8,0,0),E2<=1),"x","")

    greater than 24 hours:
    I2 =IF(E2>1,"x","")

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Formula for Date/time to calculate turnaround time

    I don't understand the columns F:I part either.

    Please post another example with results hand typed in for a few rows (4 or 5) the output you want there.
    Dave

  5. #5
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: Formula for Date/time to calculate turnaround time

    Does this help?

    In the duration buckets ("1-4", 4-8", etc), you can change what you want the IF statement to show if it is TRUE. This requires that you understand IF formulas. Right now I told the formula to give the duration turnaround time again.
    Attached Files Attached Files
    Ron
    Knowledge is knowing that a tomato and pepper are fruits. Wisdom is knowing whether to put these in a fruit salad

    Kindly

    [1] Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
    [2] Mark your post [SOLVED] if it has been answered satisfactorily by editing your original post in advanced mode.
    [3] Thank (using the little scale) those that provided useful help; its nice and its very well appreciated

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Formula for Date/time to calculate turnaround time

    Since numbers are much easier to work with times and dates (rather than text "times" and "dates") I changed the turn around back to what 63falcondude did, then used format manager to format all outputs as d "days" h "hours" m "minutes".

    In F2 and down this formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Calculate Turnaround Time/Group
    By ramesh_cl1981 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-13-2018, 01:56 PM
  2. Replies: 2
    Last Post: 11-13-2015, 07:47 PM
  3. Calculating Turnaround Time
    By jmcconville18 in forum Excel General
    Replies: 8
    Last Post: 09-19-2014, 03:03 PM
  4. [SOLVED] Calculate time remaining based on end date & time and current date
    By Kaz09 in forum Excel Formulas & Functions
    Replies: 33
    Last Post: 08-19-2014, 07:11 AM
  5. Replies: 3
    Last Post: 12-19-2013, 06:49 AM
  6. [SOLVED] Calculate number of hours from Start date and time and End date and time
    By sathyasun in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2013, 01:04 AM
  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