Forum

Sum hours, minutes,...
 
Notifications
Clear all

Sum hours, minutes, seconds with pivot table

6 Posts
2 Users
0 Reactions
1,795 Views
(@jimmyexpat)
Posts: 17
Eminent Member
Topic starter
 

Hi, i would appreciate any advice on how to sum time values in a pivot table.  These time values represent the duration that a student has spent reading books.

Data table name = "DataTable" on the worksheet labelled "ReadingLog"

- The values range from 00:00:00 through to values in excess of 24 hours and they are formatted HH:MM:SS

 

Pivot table name = "pivotHours" on the worksheet labelled "Hours"

- When i bring the Time Spent field into the values section, all of them are 00:00:00

 

I've tried many different time formats but just seem to get any to work.

Thank you in advance.

James

 
Posted : 02/06/2022 4:18 am
Riny van Eekelen
(@riny)
Posts: 1186
Member Moderator
 

Would be helpful if you could upload an example file. Otherwise, make sure that you custom format the cells with time spent on reading as [hh]:mm:ss

The square brackets surrounding the hh turn the values from a regular Time to a Duration and allow you to go beyond 24 hours.

 
Posted : 02/06/2022 5:58 am
(@jimmyexpat)
Posts: 17
Eminent Member
Topic starter
 

Hi Riny, my apologies - see attached (kutubee.xlsx).

fyi I'm using MS Excel 365 on Windows

I've applied the formatting and then refreshed the data but no joy Frown

 
Posted : 02/06/2022 11:19 am
Riny van Eekelen
(@riny)
Posts: 1186
Member Moderator
 

The "time" values in ReadingLog column F were in fact texts. I used Text-to-columns to transform them to real time values and refreshed the pivot table. It seems to work. See attached.

 
Posted : 02/06/2022 12:03 pm
(@jimmyexpat)
Posts: 17
Eminent Member
Topic starter
 

Thank you Riny, appreciated Smile

 
Posted : 03/06/2022 6:48 am
Riny van Eekelen
(@riny)
Posts: 1186
Member Moderator
 

Glad I could help!

 
Posted : 03/06/2022 7:00 am
Share: