+ Reply to Thread
Results 1 to 3 of 3

Time difference exceeding 24 hours

  1. #1
    Registered User
    Join Date
    06-12-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    8

    Time difference exceeding 24 hours

    I am trying to find time difference in hours, mins & seconds betwen 2 timestamps. If the difference between them is less than 24 hours, i get correct value. If it exceeds more than 24 hours, I get wrong answer.

    Col 1 Col 2 Col 3 = Col 2- Col 1
    8/1/12 16:00 8/2/12 14:10 22:09:59 - correct
    8/2/12 16:00 8/3/12 6:50 14:50:06 - correct
    8/3/12 16:00 8/4/12 7:37 15:36:59 - correct
    8/5/12 14:00 8/6/12 2:57 12:57:18 - correct
    8/6/12 16:00 8/7/12 16:11 0:10:58 - WRONG


    Is there any way of calculating the time difference between two timestamps when it exceeds more than 24 hours.

    Any help is greatly appricated.

    Thanks.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Time difference exceeding 24 hours

    Hi TSM,

    You need to format the output cell as Time -> 37:30:55
    see attached:-
    time diff more that 24 hrs.xlsx

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

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

    Re: Time difference exceeding 24 hours

    Custom format the result as [h]:mm:ss

+ 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