![]() |
#1
|
|||
|
|||
![]()
I am sure this is simple for the folks who know what they are doing. But I'm stumped.
Attached is a simple spreadsheet that has columns of start/end times, and a column for the duration represented by the start/end times. I want to total the hours at the bottom of the table for the duration. But I'm not getting a correct total. I also have a pivot table in it that I'm trying to list each category (tag) and total hours for each category. Of course, I'm not getting correct totals for that. I'm thinking I need to format something different. Wondering if anyone here has any suggestions. Spreadsheet attached. |
#2
|
|||
|
|||
![]()
What is the 105 in your total for?
I.e. in D317 you have =SUM(Table1 [ Duration]). I tried =SUM(Table1[Duration]) and it looks like it works... Does a total of 539:11:00 (22 days, 12 hours and 11 minutes) sound correct? |
#3
|
|||
|
|||
![]() Quote:
Yes it sounds correct, but... It's really wierd. That total is a total as added by Excel by checking "Total Row" in the design elements. So, Excel put the 105 there. I don't know what it is. When I try to just type your suggestion in (while the Total Row is still checked in the Design tab), and it shows 0. If I turn off the Total Row in Design tab, and type in what you list, I get a circular reference error. Here's a screen capture: ![]() UPDATE Also, I got to thinking maybe I was typing the formula withing the defined table range, so I moved to the next cell down, and when I type it in, it does not recognize 'duration', and gives me a "Formulat typed contains an error" message. Not sure what to think. |
#4
|
|||
|
|||
![]()
Ok. I just went in once more, made sure of my table range. Typed in the formula at the bottom of the duration column, and it shows 0:00:00.
![]() |
#5
|
|||
|
|||
![]()
I think I have solved it.....
Try changing D317 cell formatting to Number>Custom>[h]:mm:ss To avoid potential problems in the future, I would change the whole D column to [h]:mm:ss thereby allowing for any hour counts that exceed 24. As for the number Excel is loading into the formula (e.g. 105) have a look at http://office.microsoft.com/en-nz/excel-help/subtotal-function-HP010062463.aspx 105 is a min function and 109 = sum etc Hope this helps. Last edited by bobsone1; 09-04-2014 at 08:05 AM. |
#6
|
|||
|
|||
![]()
Change the format of the total to [h]:mm:ss. The way you have it, hh:mm:ss, it displays only the fraction part of the day.
Making that format change, the total becomes 539:11:00. With the current format, 11:11:00 is displayed as it lops off 528 hours (22 days). Edit: I defer to the previous answer above. For some reason, I missed it. Last edited by gebobs; 09-05-2014 at 06:49 AM. |
#7
|
|||
|
|||
![]()
Thanks everybody. That got me going. I was thinking it was in the formatting, but just couldn't figure out what it needed to be.
Much appreciated. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Mav | Project | 4 | 03-07-2014 04:47 PM |
Converting hh:mm to hours | Sammael | Excel | 2 | 04-17-2012 01:33 PM |
![]() |
PomDave | Excel | 3 | 09-05-2011 04:43 AM |
Cell with hours | meninio | Excel | 3 | 02-11-2011 06:50 AM |
Help on the formulate hours | meninio | Excel | 2 | 02-11-2011 04:56 AM |