+ Reply to Thread
Results 1 to 11 of 11

Convert mm.ss to hh:mm:ss

Hybrid View

  1. #1
    Registered User
    Join Date
    06-14-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Convert mm.ss to hh:mm:ss

    Hi all - newbie question here.

    I've taken on an old excel datasource any I need to restructure it and a column is foxing me.

    The column lists time in mm.ss format (decimal seperator), so 1.5 hours is shown as 90.00. For future use, I need this column to be formatted in hh:mm:ss (colon sepertors), ie 1:30:00

    If I simply change the cell format to hh:mm:ss, it goes

    Any ideas, pointers would be most appreciated.

  2. #2
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: Convert mm.ss to hh:mm:ss

    Quote Originally Posted by BigJohnson View Post
    If I simply change the cell format to hh:mm:ss, it goes
    that is the best ways to change, I think so
    does it work correctly

  3. #3
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Convert mm.ss to hh:mm:ss

    you just have to divide the time by 1440 and format as hh:mm:ss!

    this can also be done by typing 1440 in a cell and copy the cell and paste special over the cells selecting divide!
    Regards
    Darren

    Update 12-Nov-2010 Still job hunting!

    If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

    Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!


  4. #4
    Registered User
    Join Date
    06-14-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Convert mm.ss to hh:mm:ss

    hi
    I see what your doing with the divide by 1440 etc, but the 1440 doesn't calc.

    eg. 76.54 / 1440 & formatted to hh:mm:ss calcs as : 1:16:32, when it should in fact be 1:16:54

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

    Re: Convert mm.ss to hh:mm:ss

    ....another way

    =TEXT(A1*100,"00\:00")/60

  6. #6
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: Convert mm.ss to hh:mm:ss

    assuming your data put cell A1, the result cell is put the follow formula and is ,of course, formated to hh:mm:ss

    =TIME(0,INT(A1),(A1-INT(A1))*100)

    is that OK?
    Last edited by tigertiger; 06-14-2009 at 05:12 PM.

  7. #7
    Registered User
    Join Date
    06-14-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Convert mm.ss to hh:mm:ss

    that's perfect TigerTiger - a star - cheers !

  8. #8
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: Convert mm.ss to hh:mm:ss

    however, if yr data is a total, that is may lead to a prolem
    for example: A1=11174.34 the result will not correct
    what about your case?

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

    Re: Convert mm.ss to hh:mm:ss

    Quote Originally Posted by tigertiger View Post
    however, if yr data is a total, that is may lead to a prolem
    for example: A1=11174.34 the result will not correct
    what about your case?
    Hello tigertiger, are you referring to the solution I posted? That formula will cope with minutes < 9999, your formula will cope with minutes < 1440.

    for minutes > 9999 try

    =(A1+MOD(A1,1)*2/3)/1440

    format result cell as [h]:mm:ss

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Convert mm.ss to hh:mm:ss

    Or =DOLLARDE(A1,60)/1440
    Entia non sunt multiplicanda sine necessitate

  11. #11
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: Convert mm.ss to hh:mm:ss

    Quote Originally Posted by daddylonglegs View Post
    Hello tigertiger, are you referring to the solution I posted?
    NO, I just give BigJohnson a mention that is a limitation of my solution.

+ 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