+ Reply to Thread
Results 1 to 5 of 5

Convert decimal text into hh:mm:ss

  1. #1
    Registered User
    Join Date
    03-15-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Convert decimal text into hh:mm:ss

    Hi,

    I hope you can help me.I have a lot of raw data were the date and time column is spread over two columnsand the time appears in a very funny decimal format. See below:

    Column A Column B
    08/09/2007 600.4
    08/09/2007 1232.23
    14/09/2007 1914
    11/09/2007 2519.09

    I have given four different examples above and I need to convert these fields into a single time/date stamp (dd/hh/yyyy hh:mm).

    So the above example should come in one field as
    08/09/2007 06:04
    08/09/2007 12:32
    14/09/2007 19:14
    12/09/2007 01:19

    My raw data consists of more than 15.000 records and I am unable to convert all of these numbers manually. Can you help me?

    Also, please note the last example. My times often exceed the normal 24hour spread but includes up to 30 hours at time which needs to be added to the next day.

    Hope this makes sense.

    I appreciate all the help you can offer!

    Thank you.
    Kris

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Convert decimal text into hh:mm:ss

    Try:

    =A1+TIME(LEFT(TEXT(B1,"0000"),2),MID(TEXT(B1,"0000"),3,2),0)

    copied down, where A1 and B1 contain first combination

    Format as custom: m/d/yy hh:mm
    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 shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Convert decimal text into hh:mm:ss

    Or =A1 + DOLLARDE(B1/100, 60) / 24

    I think your first example is wrong.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Convert decimal text into hh:mm:ss

    .. i always think in simple terms..

  5. #5
    Registered User
    Join Date
    03-15-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Convert decimal text into hh:mm:ss

    Amazing!!!!! Took me days NOT to figure it out and then thank goodness I stumbled across this site.

    Works perfectly, thank you Shg for all your help!!!! Thanks also for NBVC.

    Hugs

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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