+ Reply to Thread
Results 1 to 7 of 7

Formula to convert times.

  1. #1
    Registered User
    Join Date
    08-15-2007
    Posts
    2

    Formula to convert times.

    Hi

    I am wondering if anyone have a formula to convert times ie:

    1214 to 12:14:00

    Would be really greatful if some could help as I really need this and Im completly goosed

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Is it always a 4-digit number to convert.

    If so, then try =(LEFT(A1,2)&":"&RIGHT(A1,2))+0

    Where A1 houses your 4-digit number.

    You can then format the cell to 13:30:55 to show as you desire.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719
    Try

    =TEXT(A1,"00\:00")+0

    format as time

  4. #4
    Forum Contributor
    Join Date
    08-28-2006
    Posts
    280
    Meteor239,

    Try this using 3 0r 4 digits.

    =IF(LEN(A1)=3,LEFT(A1,1)&":"&RIGHT(A1,2),LEFT(A1,2)&":"&RIGHT(A1,2))

    Dean

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719
    My suggestion will work for any number of digits, e.g.

    1 > 00:01

    11 > 00:11

    111 > 01:11

    1111 > 11:11

  6. #6
    Forum Contributor
    Join Date
    08-28-2006
    Posts
    280
    daddy,

    I know. Yours is really nice. I've stored it in my little goody file.

    Thanks,

    Dean

  7. #7
    Registered User
    Join Date
    08-15-2007
    Posts
    2
    Thank you.

+ 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