How to Group PivotTable Dates by Month and Year in Excel 2013
Question details
The user wants to group dates in an Excel 2013 PivotTable by both month and year to summarize data such as sales.

- Product
- Microsoft Excel 2013
- Device & OS
- not provided
- Scenario
- Summarizing sales or date-based data in a PivotTable by specific time intervals like month and year.
- Observed behavior
- The goal is to successfully group PivotTable dates by month and year, ensuring no invalid date formats or blank cells block the grouping function.
Ensure that all entries in your source data's date column are recognized as valid Excel dates. Blank cells or text values in the date column will prevent the grouping feature from working.
Group PivotTable Dates by Month and Year
Use the built-in Group feature in Excel 2013 to quickly summarize dates by multiple time periods.
Excel 2013 allows you to group date fields natively inside a PivotTable without needing extra formulas in your source data. By selecting both Months and Years, you ensure that January of one year is not mixed with January of another year.
Right-click on any valid date value inside your existing PivotTable's row or column area.
Select 'Group...' from the context menu that appears.
In the Grouping dialog box, click on both 'Months' and 'Years' so they are both highlighted in blue.
Click 'OK' to apply the changes. Your PivotTable will now display data summarized hierarchically by year and then by month.

Easily Group PivotTable Dates in WPS Office
WPS Office Spreadsheet provides a seamless and intuitive way to create PivotTables and group dates by month, year, or week. It easily handles large datasets and is fully compatible with your existing Excel files.
- 1. Open File: Open your spreadsheet containing the date values in WPS Office Spreadsheet.
- 2. Create PivotTable: Navigate to the Insert tab, click PivotTable, and drag your Date field into the Rows area.
- 3. Group Dates: Right-click any date cell in the PivotTable and select 'Group'.
- 4. Select Criteria: Choose 'Months' and 'Years' in the dialog box, then click OK to finish grouping.

Frequently Asked Questions
Why is the 'Group' option grayed out in my PivotTable?
The Group option is typically disabled if your source data contains invalid dates, blank cells, or text entries in the date column. Check your source data, convert all text to valid dates, fill in or exclude blanks, and refresh the PivotTable.
Can I group dates by quarters in Excel 2013?
Yes. Right-click a date in the PivotTable, select Group, and highlight 'Quarters' along with 'Years' in the Grouping dialog box to summarize data quarterly.
How do I ungroup dates in a PivotTable?
To remove the grouping and return to individual dates, right-click any grouped date cell in your PivotTable (like the Year or Month header) and select 'Ungroup' from the context menu.




