+ Reply to Thread
Results 1 to 5 of 5

Need Formula to convert Minutes into hh:mm:ss

  1. #1
    Registered User
    Join Date
    11-22-2008
    Location
    Ottawa, ON, Canada
    Posts
    16

    Need Formula to convert Minutes into hh:mm:ss

    Ok .. here is the problem . . .
    I have a spot on my spreadsheet where I am given an ammount of time in minutes.
    I need to convert it to hours:minutes:seconds (ie: hh:mm:ss)
    Can anyone help??

    Example:
    6214.11 must be converted to 103:43:12
    In other words:
    6214.11 minutes becomes 103hours, 43mins, 12 seconds

    Can be done either one of 2 ways ...
    Dont care which as long as it works.

    Either:
    A3=PRODUCT(A1,A2)
    B1=(formula here converting answer from A3 to hh:mm:ss)
    OR
    use the current
    A3=PRODUCT(A1,A2)
    and somehow change the number format to show it the way i need it to.
    (none of the preset number formats works unless you have a custom one i can use)
    Last edited by Powrpak; 11-24-2008 at 06:27 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Possibly there is a better way... but this seems to work... although I don't get the exact number you do...

    =TEXT(INT(B1/60),"00:")&TEXT(INT(MOD(B1/60,1)*60),"00:")&TEXT(ROUND(MOD(MOD(B1/60,1)*60,1)*60,0),"00")


    Where B1 has your time in minutes.

    Or if you want your PRODUCT() formula incorporated:

    =TEXT(INT(PRODUCT(A1,A2)/60),"00:")&TEXT(INT(MOD(PRODUCT(A1,A2)/60,1)*60),"00:")&TEXT(ROUND(MOD(MOD(PRODUCT(A1,A2)/60,1)*60,1)*60,0),"00")
    Last edited by NBVC; 11-24-2008 at 05:25 PM. Reason: Small formula adjustment
    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 daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,698
    Try this formula in A3

    =A1*A2/1440

    custom format A3 as [h]:mm:ss

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

    I don't know why I didn't come up with that.. got confused maybe with the [h] functionality...

    At least mine and your end numbers match, dll, although mine is text and yours is number.. and both don't match what the OP says should be the result...
    Last edited by NBVC; 11-24-2008 at 06:00 PM.

  5. #5
    Registered User
    Join Date
    11-22-2008
    Location
    Ottawa, ON, Canada
    Posts
    16
    I thank you guys greatly ... I love this forum!!

+ 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