+ Reply to Thread
Results 1 to 8 of 8

Why does SUM not work when adding hours:mins

  1. #1
    Registered User
    Join Date
    04-25-2013
    Location
    Montreal, Quebec
    MS-Off Ver
    Excel 2010
    Posts
    76

    Why does SUM not work when adding hours:mins

    Hello,

    Attached you will find the spreadsheet I created to count the hours that my staff nurse works.

    I entered the minutes (J-U) she's worked and added a calculation column (X-AI) where it would convert the entries into actual h:mm (I used an "IF" formula - also clearly viewed in the attachment).

    I want to sum the hours per month (column) BUT, it won't let me. I've been researching online, I've followed all advises, I've customized each cell for h:mm & for the total its [h]:mm. I've also customized for all to be [h]:mm and simply h:mm. NOTHING works.

    As you can see, the total per row works! But, not when I want to tally up the column.........I'm stumped.

    Can anybody help me out?
    Attached Images Attached Images
    Last edited by Johfra; 10-30-2018 at 08:55 AM. Reason: Added proper attachment

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,882

    Re: Why does SUM not work when adding hours:mins

    In Excel, time values are stored as decimal (i.e. fraction of day).
    1 = 1 day or 24 hours
    1/24 = 1 hour or 60 min
    1/24/60 = 1 min or 60 seconds

    So if you want to convert minute value stored in J to U. Instead of using long IF formula. Just divide the cell value by 1440. Format cells as [h]:mm and Sum values.

    But hard to say, exactly what's causing your issue without the actual file. You can desensitize the data, while keeping structure same to demonstrate your issue.

    Edit: To upload file, use "Go Advanced" button, then find and click on "Manage Attachments" hyperlink. It will launch new tab/window for managing uploads.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Why does SUM not work when adding hours:mins

    hi

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  4. #4
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Why does SUM not work when adding hours:mins

    Assuming that row4-6 contain the names of the nurses.
    Enter this formula into cell V48:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Format the cell in columns V:AE as Time.
    In column AH you can just sum columns V:AE
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  5. #5
    Registered User
    Join Date
    04-25-2013
    Location
    Montreal, Quebec
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Why does SUM not work when adding hours:mins

    Added excel file
    Attached Files Attached Files

  6. #6
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,882

    Re: Why does SUM not work when adding hours:mins

    Here. See attached.

    As I stated. In X7:
    =J7/1440
    Copy across and down. Format Total row as [h]:mm

    Note: I only changed first few.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-25-2013
    Location
    Montreal, Quebec
    MS-Off Ver
    Excel 2010
    Posts
    76

    Red face Re: Why does SUM not work when adding hours:mins

    Thank you all for the amazing help!! CK76 - this is amazing! I can't thank you enough! I never heard of this method/trick. I searched online for days (not full days but, on and off) and I never came across this. Thanks again so much for your help - really appreciate the time you took to answer.

  8. #8
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,882

    Re: Why does SUM not work when adding hours:mins

    You are welcome.

    You may want to read link below. Most programs (including Excel). Stores date/time value using some serial number (Ex: Unix Epoch time, stores value in seconds from 0:00 UTC 1/1/1970).

    https://www.myonlinetraininghub.com/excel-date-and-time

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Production Scheduler & Adding in Hours to Work
    By Indy1840 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-18-2016, 08:49 AM
  2. Replies: 3
    Last Post: 01-22-2016, 01:44 AM
  3. [SOLVED] Formula to work out hours worked minus 30 mins break
    By bouncingbudha in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-30-2015, 01:13 AM
  4. Need help with time and adding or deducting 30 mins for lunch at work
    By cedboil in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-16-2014, 02:00 PM
  5. Help with adding work hours above 40
    By Boville in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-24-2012, 09:21 AM
  6. Time Converter : Mins/Secs to Hours/Mins
    By jamesgsi1983 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-23-2009, 09:02 AM
  7. Replies: 8
    Last Post: 01-07-2006, 03:35 PM

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