+ Reply to Thread
Results 1 to 7 of 7

Converting a number to hh:mm

  1. #1
    Registered User
    Join Date
    03-14-2008
    Posts
    20

    Converting a number to hh:mm

    Say I have a number of minutes of 24013.76 in B3 and in C3 I want to have that number in hh:mm format. When I do the custom format it doesn't calculate it correctly.

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    You have to divide by 1440 first. Excel is reading this as 24k days.

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

    =TIME(0,B3,0) and then formatting to 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.

  4. #4
    Registered User
    Join Date
    03-14-2008
    Posts
    20
    you guys are awesome! Both ways work and i found the nice little format of [h]:mm:ss and modified it to [h]:mm and got exacty what i needed. I don't know what i would do without internets...probably go crazy

    THANK YOU THANK YOU!!!!

    ps what's the difference between h:mm and [h]:mm? i don't really need to know, but it would be nice to understand the difference.

  5. #5
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    [h] will allow more than 24 hours. h rolls over to 0 after 24.

  6. #6
    Registered User
    Join Date
    03-14-2008
    Posts
    20
    Quote Originally Posted by darkyam
    [h] will allow more than 24 hours. h rolls over to 0 after 24.
    ahhh...got it. now it makes sense why it wasn't appearing like i had wanted earlier. Thanks again

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Quote Originally Posted by NBVC
    =TIME(0,B3,0)
    I wouldn't have thought that this would work. Time function never returns a value greater than 24 hours, presumabaly 24013.76 minutes should become 400:13 or similar?

+ 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