+ Reply to Thread
Results 1 to 5 of 5

Calculating Elapsed Time

Hybrid View

  1. #1
    Registered User
    Join Date
    04-11-2008
    Posts
    2

    Calculating Elapsed Time

    I'm having trouble calculating elapsed time. I want the answer to state
    the number of days, hour, and minutes. In Column E I can get the number
    of hours but how do I parse this value to get Hours, days, minutes? I also need to divide the hours into days (ex. 1506/24)

    Thank you,

    A B C D E
    WO_No. REQ_DATE REQ_TIME WO_EST_START ElapTime
    1-20240274 1/9/2008 14:22:00 3/12/08 9:00 AM 1506:38:00
    1-20240688 1/14/2008 15:40:00 1/23/08 8:30 AM 208:50:00
    1-20240985 1/16/2008 13:57:00 2/7/08 4:30 PM 530:33:00

    Formula in E is =D2-(B2+C2).

    Thank you.
    Last edited by ExcelUser55; 04-11-2008 at 10:19 AM.

  2. #2
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    maybe this can help:

    http://www.cpearson.com/excel/DateTimeWS.htm
    If you found the solution to your question. Mark the thread as "Solved"
    Thank everyone that helped you with a valid solution by clicking on their

    There is no such thing as a problem, only a temporary lack of a solution

  3. #3
    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
    Quote Originally Posted by ExcelUser55
    I'm having trouble calculating elapsed time. I want the answer to state
    the number of days, hour, and minutes. In Column E I can get the number
    of hours but how do I parse this value to get Hours, days, minutes? I also need to divide the hours into days (ex. 1506/24)

    Thank you,

    A B C D E
    WO_No. REQ_DATE REQ_TIME WO_EST_START ElapTime
    1-20240274 1/9/2008 14:22:00 3/12/08 9:00 AM 1506:38:00
    1-20240688 1/14/2008 15:40:00 1/23/08 8:30 AM 208:50:00
    1-20240985 1/16/2008 13:57:00 2/7/08 4:30 PM 530:33:00

    Formula in E is =D2-(B2+C2).

    Thank you.

    Presumably you mean Column F, the first available column. The following formula will give you the Days, Hours and Minutes in the format dd : hh : mm. If you need the individual values then just break the three elements of the formula into three separate cells.

    =IF(E2<C2,MAX(D2-B2-1,0),D2-B2)&" : "&INT(IF((E2-C2)<0,24+(E2-C2)*24,(E2-C2)*24))&" : "&ROUND(MOD((E2-C2)*1440,60),0)
    HTH

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719
    I'm assuming you have start date in B2, start time in C2 and both end time and date in D2. This formula in E2 will give you a result like "62 days 18:38"

    =INT(D2-B2-C2)&" days "&TEXT(D2-B2-C2,"hh:mm")

    Note: this results in a text string rather than a numeric value

  5. #5
    Registered User
    Join Date
    04-11-2008
    Posts
    2
    Thank you for the formula. It worked great.

    ExcelUser55

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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