+ Reply to Thread
Results 1 to 8 of 8

Excel 2007 : Data Table "total row" won't calculate time

  1. #1
    Registered User
    Join Date
    03-31-2012
    Location
    Ann Arbor, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    4

    Data Table "total row" won't calculate time

    I'm creating a new timecard system for my employer. The system is a bit complicated since each employee must have a cost code assigned to every 15 minutes worth of work. Our office manager then needs to do a number of things with the cost code data.

    To make this process easier for her, I am creating a new timesheet system. Every two weeks the employee's timecards will automatically update the Payroll sheet (see Payroll 4-20 tab). This payroll sheet is a simple excel data table. The problem I'm having is that I can't get the data table to add hours correctly. I've added the Total Row by clicking on "total row" under the design table style options, but the sum is incorrect. Any thoughts you have on how to get this row to correctly calculate time/hours would be greatly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Data Table "total row" won't calculate time

    the 'sum' was actualy doing a count, try this

    =SUBTOTAL(9,[Hours])
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Registered User
    Join Date
    03-31-2012
    Location
    Ann Arbor, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Data Table "total row" won't calculate time

    Quote Originally Posted by DGagnon View Post
    the 'sum' was actualy doing a count, try this

    =SUBTOTAL(9,[Hours])
    Thank you. I tried that but it still doesn't work. It is giving me an answer of 18:15 hours (the total should be 66.25 hours). I also tried =SUBTOTAL(9,[Hours])*24 and the total just comes to 6 hours.

  4. #4
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Data Table "total row" won't calculate time

    make sure you change the format to hours, i am getting the 66 hours 15 Mins
    Last edited by DGagnon; 04-06-2012 at 03:26 PM.

  5. #5
    Registered User
    Join Date
    03-31-2012
    Location
    Ann Arbor, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Data Table "total row" won't calculate time

    How do I change the format to hours? On the other tables I have it as custom h:mm but that isn't working here.

  6. #6
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Data Table "total row" won't calculate time

    just right click on the total cell and go to format cell, number, custom and enter [h]:mm

    the square brackets will make sure it continues to add hours after 24 instead of restarting.

  7. #7
    Registered User
    Join Date
    03-31-2012
    Location
    Ann Arbor, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Data Table "total row" won't calculate time

    It worked!!! Thank you so much for your help!!!

  8. #8
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Data Table "total row" won't calculate time

    no problem at all

+ 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