Create a Dynamic Excel Summary of Hours and Costs by Category
Question details
Create a summary of timesheet hours and costs by category that can include new entries and categories.

- 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.
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.
Create a PivotTable from an Excel Table
Use this method for a refreshable summary that includes new rows added to the source table.
Select a cell in the timesheet, choose Insert > Table, confirm the range, and select My table has headers.
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.
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.
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.

Build an expanding summary with dynamic array formulas
Use formulas in Microsoft 365 or Excel 2021 when you want the category list and totals to recalculate without refreshing a PivotTable.
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. Open the timesheet: Open WPS Spreadsheets and use Open to select your Excel timesheet. Check that Category, Hours, and Cost have headers.
- 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. 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. 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.

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.




