Pivot Table Issues

Create a Dynamic Excel Summary of Hours and Costs by Category

Nimra MalikNimra Malik Dec 2, 2026 869 views

Question details

Create a summary of timesheet hours and costs by category that can include new entries and categories.

Create a Dynamic Excel Summary of Hours and Costs by Category
Product
Microsoft Excel
Device & OS
not provided
Scenario
A timesheet receives additional entries and categories over time.
Observed behavior
The desired summary shows total hours and costs for each category and accommodates new source data.
Before you start

Make sure the timesheet has column headers such as Category, Hours, and Cost, with numeric values in the Hours and Cost columns. If costs need to be calculated from hourly rates, add a Cost column with the appropriate calculation first.

Solution 1Recommended

Create a PivotTable from an Excel Table

Use this method for a refreshable summary that includes new rows added to the source table.

1
Format the timesheet as a table

Select a cell in the timesheet, choose Insert > Table, confirm the range, and select My table has headers.

2
Insert a PivotTable

With a cell in the table selected, choose Insert > PivotTable. Confirm the table as the source, choose where to place the PivotTable, and select OK.

3
Arrange the fields

In the PivotTable Fields pane, drag Category to Rows and drag Hours and Cost to Values. If either value shows Count instead of Sum, open its Value Field Settings and select Sum.

4
Add entries and refresh

Add new timesheet entries in rows immediately below the Excel Table so they become part of it. Right-click the PivotTable and select Refresh to include the new entries and categories.

Create a PivotTable from an Excel Table
Refresh is required: The source table expands as entries are added, but the PivotTable summary does not update until it is refreshed.
Summarize timesheets in WPS Spreadsheets

Create a Category Summary with a WPS Spreadsheets PivotTable

Use WPS Spreadsheets to group timesheet entries by category and calculate total hours and costs. Refresh the PivotTable after updating its source data.

  1. 1. Open the timesheet: Open WPS Spreadsheets and use Open to select your Excel timesheet. Check that Category, Hours, and Cost have headers.
  2. 2. Insert a PivotTable: Select the timesheet data, including its headers, and choose Insert > PivotTable. Confirm the source range and where to place the summary.
  3. 3. Set up the summary: In the PivotTable field list, place Category in Rows and Hours and Cost in Values. Set each value field to Sum if necessary.
  4. 4. Update the results: After adding entries, check that the PivotTable source range includes the new rows and adjust it if needed. Then right-click the PivotTable and select Refresh.
Summarize hours and costs by category with a PivotTableOpen and edit Microsoft Excel XLSX filesWork in a familiar spreadsheet interfaceUse WPS Office for free
microsoft office alternative - wps office

Frequently Asked Questions

Will an Excel PivotTable update automatically when I add a category?

The new category can appear after you add it to the source Excel Table and refresh the PivotTable. Right-click the PivotTable and select Refresh.

Why does my PivotTable count hours instead of summing them?

Check that the Hours column contains numeric values. Then open the Hours field's Value Field Settings in the PivotTable and choose Sum.

Can I create the summary without refreshing a PivotTable?

In Microsoft 365 or Excel 2021, use UNIQUE to spill a list of categories and SUMIF to calculate totals against that list. Keep the source in an Excel Table so formulas can include added rows.

What should I do if my formula shows a #SPILL! error?

Clear the cells where the formula needs to display its results, and make sure the spilled formula is outside an Excel Table.

Can WPS Spreadsheets open my Excel timesheet?

Yes. Use Open in WPS Spreadsheets to select an Excel XLSX file, then use Insert > PivotTable to build a category summary.