Pivot Table Issues

Create an Excel PivotTable to Summarize Data by Category and Month

Khadija KhanKhadija Khan Dec 2, 2026 870 views

Question details

Create a PivotTable that summarizes values by category and month.

Create an Excel PivotTable to Summarize Data 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.
Before you start

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.

Solution 1Recommended

Create a PivotTable and group dates by month in Excel

Use Excel's date grouping to summarize numeric values by category and month.

1
Prepare the source table

Select the dataset and choose Insert > Table. Confirm that the table has headers, then select any cell in it.

2
Insert the PivotTable

Choose Insert > PivotTable, confirm the table range, select where to place the PivotTable, and click OK.

3
Arrange the fields

In the PivotTable Fields pane, drag Category to Rows, Date to Columns, and Amount to Values.

4
Group the dates

Right-click a date heading in the PivotTable and choose Group. Select Months and, if the data spans multiple years, Years; then click OK.

5
Check the calculation

If Values shows Count instead of Sum, open the Amount field's menu in the Values area, choose Value Field Settings, and select Sum.

Create a PivotTable and group dates by month in Excel
Refresh after changes: After editing or adding source records, right-click the PivotTable and select Refresh to update the summary.
Summarize data in WPS Spreadsheets

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. 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. 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. 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. 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.
Summarize amounts by category and month with a PivotTableOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interfaceWork with a free, lightweight office suite
microsoft office alternative - wps office

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.