How to Fix Excel Pivot Table Showing October Data Under November
Question details
The user's pivot table incorrectly categorizes October records under November and displays the months out of chronological order in the filter dropdown menu.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Analyzing monthly data in a pivot table where chronological sorting and accurate month grouping are required.
- Observed behavior
- October data appears under the November label, and the month dropdown sorting is broken (e.g., Sep, Nov, Oct, Dec).
Verify that your source data table does not contain manual overrides in the month column and ensure you are working with the original dataset containing valid date formats.
Create a Calculated Month Column from Dates
Extract the correct month name directly from a real Date column to bypass corrupted text labels and ensure accurate grouping.
If the existing month column contains mixed data types or manually typed errors, the pivot table will struggle to sort them correctly. Deriving the month directly from the source date field using a formula ensures data consistency.
Add a new blank column next to your existing data table and name the header 'Calculated_Month'.
In the first cell of the new column, type the formula =TEXT([@Date],"mmm") (replace [@Date] with your actual date cell reference, such as A2) and press Enter.
Double-click or drag the fill handle in the bottom-right corner of the cell to apply this formula to all rows in your dataset to generate consistent three-letter month names.
Go to your pivot table sheet, click on 'PivotTable Analyze' in the ribbon, select 'Change Data Source' to include the new column, and replace the old month field in the Rows area with the new 'Calculated_Month' field.

Clear the Pivot Cache and Refresh
Clear retained items from the pivot cache to remove stale or manually overwritten month labels that persist in the report.
Easily Manage and Group Pivot Table Data with WPS Office
WPS Spreadsheet provides powerful and intuitive pivot table features, making it easy to group dates, manage data types, and avoid sorting issues when generating monthly reports.
- 1. Select your source data: Open your spreadsheet in WPS Office and highlight the data range you want to analyze.
- 2. Insert a PivotTable: Navigate to the 'Insert' tab on the top ribbon and click on the 'PivotTable' icon.
- 3. Group dates automatically: Drag your Date field into the Rows area, right-click any date value, and choose 'Group' to aggregate data by Months or Years automatically without needing extra formula columns.

Frequently Asked Questions
Why does my pivot table sort months alphabetically instead of chronologically?
This usually happens when the month field is formatted strictly as text rather than being derived from a recognizable Date value. You can fix this by setting up a custom sort list or grouping a real date column by month.
How do I group by month and year in a pivot table?
Right-click any date value in the pivot table row labels, select 'Group' from the menu, and then highlight both 'Months' and 'Years' in the grouping dialogue box before clicking OK.
Why do old, deleted data labels still appear in my pivot table dropdowns?
Spreadsheet software retains old items in the pivot cache by default to maintain layout integrity. To remove them, go to PivotTable Options > Data tab, set 'Number of items to retain per field' to 'None', and then refresh the pivot table.




