How to Fix Excel Slicer Sorting Dates Incorrectly in PivotCharts
Question details
The user needs to resolve an issue where an Excel slicer attached to a PivotChart sorts dates out of chronological order.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Filtering PivotCharts using a date-based slicer.
- Observed behavior
- The slicer displays valid dates out of chronological order, frequently sorting alphabetically or by day number rather than by the proper month and year.
Verify that your computer's regional and time-zone settings match the settings used when the workbook was originally created, as mismatches can cause date values to be interpreted incorrectly.
Convert Text Dates to Valid Serial Dates and Group Them
Use this solution to ensure Excel recognizes your source data as actual dates rather than text strings, which is the most common cause of incorrect slicer sorting.
Slicers will sort dates as text (e.g., by day number) if the source column contains improperly formatted date strings. Converting these to valid Excel serial dates and grouping them in the PivotTable will enforce chronological sorting.
Navigate to the original source data table that feeds your PivotTable and select the entire column containing your dates.
Go to the 'Data' tab on the ribbon and click 'Text to Columns'. Click 'Next' twice to reach step 3 of the wizard. Select 'Date' and choose the format that matches your data (e.g., MDY), then click 'Finish'.
Go to your PivotTable, right-click any date in the row or column labels, and select 'Group'. Choose 'Months' and 'Years'.
Go to 'PivotTable Analyze', click 'Refresh', then delete your old slicer and insert a new one based on the newly grouped date field.

Use Power Query to Normalize Date Data
This method is highly effective if your date data is messy, comes from an external source, or requires reshaping before being loaded into the PivotTable cache.
Clear Retained Items from the PivotTable Cache
Use this fix if your slicer is displaying old, deleted dates that are no longer present in your source data, which can disrupt the sorting order.
Create and Manage PivotTable Slicers Seamlessly in WPS Office
WPS Spreadsheet provides powerful and intuitive PivotTable tools with robust date recognition. If you are struggling with date sorting issues or corrupted caches, you can easily process your data in WPS Spreadsheet to ensure precise chronological filtering.
- 1. Open your workbook: Launch WPS Spreadsheet and open your existing data file.
- 2. Insert a PivotTable: Select your data range, navigate to the 'Insert' tab, and click 'PivotTable'.
- 3. Group your dates: Right-click the date field inside the newly created PivotTable and select 'Group' to easily organize your data by Months or Years.
- 4. Insert a Date Slicer: Go to the 'Options' tab under PivotTable Tools, click 'Insert Slicer', and select your Date field. The slicer will automatically display and sort your dates in strict chronological order.

Frequently Asked Questions
Why does my Excel slicer sort by day number instead of by month?
This happens when Excel interprets your date values as standard text instead of serial date numbers. Because text is sorted character-by-character from left to right, a date starting with '01' will always appear before '02', regardless of the month or year. Converting the column format to an actual Date type fixes this.
How can I force my slicer to use a specific custom sort order?
You can create a Custom List in Excel by going to File > Options > Advanced > Edit Custom Lists. After adding your desired order, right-click your slicer, select 'Slicer Settings', and ensure the 'Use Custom Lists when sorting' option is checked.
Can editing a workbook on different computers break date sorting?
Yes. If a workbook is opened on a computer with different regional or time-zone settings, Excel may misinterpret the date format (e.g., swapping DD/MM/YYYY to MM/DD/YYYY). This causes the PivotTable cache to corrupt the chronological sequence when generating slicers.
How do I remove old deleted dates that are still showing in my slicer?
Excel PivotTables cache historical data by default. To clear old items, right-click the PivotTable, select 'PivotTable Options', go to the 'Data' tab, and set 'Number of items to retain per field' to 'None'. Then, refresh the PivotTable.




