Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: Convert existing numbers to time

  1. #1
    New Member
    Join Date
    Mar 2002
    Location
    georgia
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I have a column of numbers such as 123, 245, 345 etc.

    I would like to convert these to times such as 1:23, 2:45, and 3:45, when I choose format cells I get a value of 0:00

    Thanks for your help in advance.


  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    If these values are 24-hour representation of hours and minutes use...

    =SUM(MID(REPT(0,4-LEN(A1))&A1,{1,3},2)/{24,1440})

    ...where A1 contains your value. Format the cell containing this formula as h:mm

  3. #3
    New Member
    Join Date
    Mar 2002
    Location
    georgia
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    EXCELLENT Thank you!

    I hate to ask this but could you please tell me how to include seconds.

    24511 = 2:45:11

    Thanks again

  4. #4
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-03-06 11:01, trekcowboy wrote:
    EXCELLENT Thank you!

    I hate to ask this but could you please tell me how to include seconds.

    24511 = 2:45:11

    Thanks again
    =SUM(MID(REPT(0,6-LEN(A1))&A1,{1,3,5},2)/{24,1440,86400})

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •