Group and Filter Excel PivotTable Dates by Month
Question details
Group transaction dates by month in an Excel PivotTable so they can be sorted and filtered from January through December.

- Product
- Microsoft Excel PivotTable
- Device & OS
- not provided
- Scenario
- A user is analyzing transaction dates in a PivotTable and wants monthly rather than daily results.
- Observed behavior
- The desired view groups dates by month and allows filtering by month and, when needed, year.
Make sure the source date column contains valid Excel dates rather than dates stored as text. Place the date field in the PivotTable Rows or Columns area before grouping it.
Group PivotTable dates by month
Use PivotTable grouping to replace daily date entries with monthly groups.
In the PivotTable, right-click a date in the Rows or Columns area and select Group.
In the Grouping dialog, select Months. If the data spans multiple years, also select Years to keep the same months in different years separate, then click OK.
Open the date or month field's filter arrow in the PivotTable, select the months or years you want to display, and click OK.
Right-click a grouped month and select Sort, then choose the ascending option to display months from January through December.

Enable automatic date grouping in Excel
Use this setting if Excel is not automatically grouping date fields when you add them to PivotTables.
Group PivotTable Dates by Month in WPS Spreadsheets
Use a PivotTable in WPS Spreadsheets to summarize transaction dates by month and filter the resulting groups.
- 1. Open your workbook: Open WPS Spreadsheets and select File > Open to choose the workbook containing your transaction dates.
- 2. Create a PivotTable: Select the source data, choose Insert > PivotTable, and add the date field to the Rows area.
- 3. Group the dates: Right-click a date in the PivotTable, select Group, and choose Months. Also select Years if your data covers multiple years, then confirm.
- 4. Filter the months: Open the grouped date field's filter arrow and select the months or years to display.

Frequently Asked Questions
Why can't I group dates in my Excel PivotTable?
The source date column may contain text, blank cells, or errors. Correct the entries in the source data, then right-click the PivotTable and select Refresh before trying Group again.
How do I keep January from different years separate?
Right-click a PivotTable date, select Group, and choose both Months and Years in the Grouping dialog.
How do I show only certain months in the PivotTable?
Open the filter arrow for the grouped date or month field, select the months you want, and click OK.
Can I return to individual dates after grouping?
Right-click a grouped date or month in the PivotTable and select Ungroup.




