+ Reply to Thread
Results 1 to 7 of 7

Convert Decimal Hours into Minutes

  1. #1
    Registered User
    Join Date
    03-22-2011
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Thumbs up Convert Decimal Hours into Minutes

    I have a spreadsheet that tracks working hours by decimal hours. For example, 8hours15 minutes shows as 8.25 hours. This is tracked through a Calendar year. I then have a cell that calculates how much overtime is accrude or how much time needs to be made up. This also show decimal hours in both positive and negative answers depending on the range of hours worked. How do I convert the decimal hours into minutes to show minutes over or minutes under? I tried the below formula and anytime my answer is negative, it says #VALUE in the cell. My formula looks like this: =TEXT((SUM(E10))/1440, "mm:ss").
    E10 is the cell that contains the total decimal hours. Formula there looks like this: =SUM(C5:C214).
    Last edited by hiddenone; 03-30-2011 at 02:07 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Convert Decimal Hours into Minutes

    Hi,

    Try wrapping E10 with an =ABS() function i.e.

    Please Login or Register  to view this content.
    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    03-22-2011
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Convert Decimal Hours into Minutes

    Thank you. This partially worked. How do I get my answer to show negatives? Right now it's accurately showing the right amount of hours:minutes but everything shows up as a positive number. If time needs to be made up I'd like it to show as a negative.

    So now in E10 I have: =ABS(SUM(C5:C214))

    And in E11 I have: =TEXT((SUM(E10))/1440, "mm:ss")

    Thanks

  4. #4
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Convert Decimal Hours into Minutes

    Try this one

    Please Login or Register  to view this content.
    Regard
    Last edited by mahju; 03-26-2011 at 08:38 AM.
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Convert Decimal Hours into Minutes

    Hi,

    Can you upload your workbook, or at least the relevant part of it?

    Regards

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Convert Decimal Hours into Minutes

    If you have 8.25 representing 8 hours 15 minutes then you convert that to 495:00 by dividing by 24 and formatting as [m]:ss so based on mahju's suggestion try

    =IF(E10<0,"-","")&TEXT(ABS(E10)/24,"[m]:ss")
    Audere est facere

  7. #7
    Registered User
    Join Date
    03-22-2011
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Convert Decimal Hours into Minutes

    I had to take off the ABS function (in E10) and then used Mahju's formula for E11. It worked!!! Thank you all for the help through this.
    Last edited by hiddenone; 03-30-2011 at 02:09 PM.

+ 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