Pivot Table Issues

How to Fix Excel Slicer Sorting Dates Incorrectly in PivotCharts

Steven ParkerSteven Parker Oct 26, 2026 868 views

Question details

The user needs to resolve an issue where an Excel slicer attached to a PivotChart sorts dates out of chronological order.

How to Fix Excel Slicer Sorting Dates Incorrectly in PivotCharts
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the source data

Navigate to the original source data table that feeds your PivotTable and select the entire column containing your dates.

2
Convert text to columns

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'.

3
Group the PivotTable dates

Go to your PivotTable, right-click any date in the row or column labels, and select 'Group'. Choose 'Months' and 'Years'.

4
Refresh and recreate the slicer

Go to 'PivotTable Analyze', click 'Refresh', then delete your old slicer and insert a new one based on the newly grouped date field.

Convert Text Dates to Valid Serial Dates and Group Them
Organize Data Effectively

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. 1. Open your workbook: Launch WPS Spreadsheet and open your existing data file.
  2. 2. Insert a PivotTable: Select your data range, navigate to the 'Insert' tab, and click 'PivotTable'.
  3. 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. 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.
Fully compatible with Microsoft Excel (.xlsx) PivotTables and formattingIntelligent date grouping for days, months, and years without complex formulasLightweight application with high performance for large datasets
microsoft office alternative - wps office

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.