Pivot Table Issues

How to Fix Excel PivotTable Time Totals Not Summing Correctly

Algirdas JasaitisAlgirdas Jasaitis Oct 12, 2026 871 views

Question details

The user needs to correct an issue where a PivotTable displays the count of time entries instead of summing up their total duration.

How to Fix Excel PivotTable Time Totals That Do Not Sum
Product
Excel
Device & OS
not provided
Scenario
Aggregating time durations (HH:MM:SS) in a PivotTable report.
Observed behavior
The PivotTable defaults to counting the time entries rather than calculating their sum, and totals exceeding 24 hours display incorrectly due to standard time formatting.
Before you start

Ensure your source data column containing time values is formatted correctly as Time or Custom (hh:mm:ss) and does not contain any hidden text characters or blank cells.

Solution 1Recommended

Change Value Field Settings to Sum and Apply Custom Time Format

Modify the calculation type of the PivotTable field from Count to Sum, and apply an elapsed time format to handle durations over 24 hours.

When time fields are added to a PivotTable, the spreadsheet application often defaults to counting the number of records instead of adding the times together. Additionally, standard time formats reset back to zero after 24 hours, meaning cumulative time totals require a specific custom format.

1
Open Value Field Settings

Click on the time field in the 'Values' area of your PivotTable Fields pane. From the drop-down menu that appears, select 'Value Field Settings'.

2
Change Calculation to Sum

In the 'Summarize value field by' tab within the dialog box, select 'Sum' instead of 'Count'.

3
Apply Custom Number Format

Click the 'Number Format' button located at the bottom left of the dialog box. Choose the 'Custom' category.

4
Enter the Elapsed Time Code

In the 'Type' input box, enter '[h]:mm:ss' and click 'OK'. This specific bracketed format ensures time totals exceeding 24 hours are displayed accurately as elapsed time rather than clock time.

5
Confirm Changes

Click 'OK' one more time to apply the new calculation and formatting rules to your PivotTable.

Change Value Field Settings to Sum and Apply Custom Time Format
Format Tip: Using brackets around the hour [h] tells the spreadsheet to display accumulated elapsed time. Without the brackets, a total of 25 hours would incorrectly display as 01:00:00.
Effortless Data Analysis

Easily Sum Time in PivotTables with WPS Spreadsheet

WPS Spreadsheet provides a highly compatible, intuitive interface for managing PivotTables, allowing you to easily sum time data, customize calculations, and format large time aggregates effortlessly.

  1. 1. Create a PivotTable: Highlight your data in WPS Spreadsheet, navigate to the Insert tab on the top ribbon, and click PivotTable.
  2. 2. Adjust Value Settings: Drag your time column into the Values area. Click on it and select Value Field Settings.
  3. 3. Select Sum and Format: Choose 'Sum', then click 'Number Format'. Select 'Custom' and input '[h]:mm:ss' to accurately aggregate and display total time durations.
100% format compatibility with Microsoft Excel (.xlsx) files and PivotTablesIntuitive Value Field Settings for quick Sum/Count adjustmentsFull support for advanced custom time formatting (like [h]:mm:ss)Lightweight, fast, and free to use for complex data analysis
microsoft office alternative - wps office

Frequently Asked Questions

Why does my PivotTable default to 'Count' instead of 'Sum'?

PivotTables will automatically default to 'Count' if there are any blank cells or text values in the source data column. Ensure your entire column contains only valid numeric time entries with no blanks to make it default to 'Sum'.

Why does my summed time show as 0:00:00?

This usually occurs because the source data is formatted as text rather than an actual time value. You can resolve this by converting the text to time using the VALUE function, or by copying a blank cell and using Paste Special > Add over your time data.

Can I sum minutes and seconds without displaying hours?

Yes. If you only want to see accumulated minutes and seconds, you can adjust the custom number format to [m]:ss instead of [h]:mm:ss. This will accumulate all elapsed hours directly into the total minute count.