+ Reply to Thread
Results 1 to 5 of 5

Convert numbers to time format

  1. #1
    Registered User
    Join Date
    11-09-2005
    Posts
    42

    Convert numbers to time format

    Hi,

    I've just would like to convert numbers to time format. For example, if I type 164523 I would like it to be displayed in the cell as 16:45:23.

    Thank you.

    kras

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    This link might help

    http://www.cpearson.com/excel/DateTimeEntry.htm

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    11-09-2005
    Posts
    42
    Hi Noob,

    Thanks for the reply. I didn't know that it was supposed to be related with coding.

    kras

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    You can use a helper column

    =LEFT(A1, 2) & ":" & MID(A1, 3, 2) & ":" & RIGHT(A1, 2)

    VBA Noob

  5. #5
    Registered User
    Join Date
    11-09-2005
    Posts
    42
    Thanks again.

+ 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