Create an Excel PivotTable to Summarize Data by Category and Month
Question details
Create a PivotTable that summarizes values by category and month.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The user wants to summarize a dataset without writing multiple SUMIF formulas.
- Observed behavior
- The desired result is a PivotTable with categories in rows, months in columns, and summed values in the table.
Arrange the source data in columns with headers such as Date, Category, and Amount. Check that Date cells contain valid dates and Amount cells contain numbers.
Create a PivotTable and group dates by month in Excel
Use Excel's date grouping to summarize numeric values by category and month.
Select the dataset and choose Insert > Table. Confirm that the table has headers, then select any cell in it.
Choose Insert > PivotTable, confirm the table range, select where to place the PivotTable, and click OK.
In the PivotTable Fields pane, drag Category to Rows, Date to Columns, and Amount to Values.
Right-click a date heading in the PivotTable and choose Group. Select Months and, if the data spans multiple years, Years; then click OK.
If Values shows Count instead of Sum, open the Amount field's menu in the Values area, choose Value Field Settings, and select Sum.

Build a category-by-month summary in WPS Spreadsheets
Use a month helper column and a PivotTable in WPS Spreadsheets to summarize your records by category without writing multiple SUMIF formulas.
- 1. Open and prepare the data: Open the workbook in WPS Spreadsheets and check that the source columns have headers, such as Date, Category, and Amount.
- 2. Add a month column: Add a Month header. If the first date is in A2, enter =DATE(YEAR(A2),MONTH(A2),1) in the first Month cell and fill the formula down. Format the column as a month and year.
- 3. Insert a PivotTable: Select the dataset, including the Month column, and choose Insert > PivotTable. Confirm the range and choose where to place the PivotTable.
- 4. Arrange the fields: In the PivotTable field list, drag Category to Rows, Month to Columns, and Amount to Values. Set the Values calculation to Sum if needed.

Frequently Asked Questions
Why can't I group dates in my Excel PivotTable?
Check the source Date column for blank cells, text, or invalid dates. Correct the entries, right-click the PivotTable, select Refresh, and try Group again.
How do I keep months from different years separate?
When you right-click a date and choose Group, select both Months and Years. Alternatively, use a helper column containing the first date of each month and format it to show the month and year.
Why does my PivotTable count amounts instead of adding them?
Check that the source Amount column contains numbers. In the PivotTable Fields pane, open the Amount field menu under Values, choose Value Field Settings, and select Sum.
How do I update the summary after adding records?
Add the records to the source table, then right-click the PivotTable and choose Refresh. If the source is a fixed range rather than a table, you may also need to update the PivotTable's data source.




