+ Reply to Thread
Results 1 to 4 of 4

How to change time stamp formatting general to time formatt without losing time!?

  1. #1
    Registered User
    Join Date
    02-22-2012
    Location
    Wagga Wagga, Australia
    MS-Off Ver
    Office 365 Excel
    Posts
    32

    How to change time stamp formatting general to time formatt without losing time!?

    Hi all,

    I have a string of time stamps in general number format, i.e. 1254, 1257, 1259, 1301, 1304, ...etc.

    I want to find the difference (mins) between each one, i.e. from above, 3, 2, 2, 3, ...etc

    Problem is that in the general number format is stuffing it up, i.e. 1301 - 1259 = 42, which is not correct.

    When I convert the format to time, it just ignores the original time and displays it as 00:00.

    How can I turn the original numbers to a format that will make sense when I measure the differences between numbers??

    Thanks.

    Dave

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: How to change time stamp formatting general to time formatt without losing time!?

    This will convert the numbers to 'real' times.

    =TIMEVALUE(TEXT(A1, "00\:00"))

    You'll probably need to format the cells with the formula.

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: How to change time stamp formatting general to time formatt without losing time!?

    Assume that the data is starting from A2 cell

    A2 cell
    1254

    In B2 cell
    =IF(ISNUMBER(A2),(--(LEFT(A2,2)&":"&RIGHT(A2,2))),"")
    Apply Time Format and drag it down.

    In C2 cell
    =IF(AND(ISNUMBER(B2),ISNUMBER(B1)),B2-B1,"")
    Apply Time Format and drag it down.

    Hope this helps!


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    02-22-2012
    Location
    Wagga Wagga, Australia
    MS-Off Ver
    Office 365 Excel
    Posts
    32

    Re: How to change time stamp formatting general to time formatt without losing time!?

    Both methods work great! Thanks very much!!

+ 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