Fix an Excel PivotTable Slicer That Shows No Results for Month and Year
Question details
The user needs to filter an Excel PivotTable by month and year independently.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A PivotTable slicer uses a full date field that is displayed as a month or year.
- Observed behavior
- The slicer filters the underlying full date, including the day, rather than grouping records by the displayed month or year.
Check that the source date column contains real Excel dates, not text, and identify the range used by the PivotTable. If the source is an Excel table, new helper columns are easier to include when you refresh.
Create Year and Month Helper Columns for PivotTable Slicers
Use separate helper columns when you want to filter a PivotTable by year and month independently.
Changing a date's display format does not change its underlying value. Helper columns give the PivotTable distinct fields for the year and month.
In the PivotTable source data, add a column named Year. If the first date is in A2, enter =YEAR(A2) in the first data row and fill the formula down.
Add a column named Month, enter =TEXT(A2,"mmmm") in the first data row, and fill it down. Replace A2 with the cell containing the first source date.
Click the PivotTable and select PivotTable Analyze > Change Data Source. Include the new columns in the source range, then select PivotTable Analyze > Refresh.
With the PivotTable selected, choose PivotTable Analyze > Insert Slicer. Select Year and Month, then click OK.
Click a year in the Year slicer and a month in the Month slicer to display records for that combination.

Filter Source Data by Month and Year in WPS Spreadsheets
Use Year and Month helper columns and the filter controls in WPS Spreadsheets to narrow source records without relying on a full-date slicer.
- 1. Open the workbook: Open WPS Spreadsheets and use Open to select the Excel workbook containing your source data.
- 2. Add helper columns: Add Year and Month headers beside the source data. If the first date is in A2, enter =YEAR(A2) and =TEXT(A2,"mmmm") in the respective columns, then fill both formulas down.
- 3. Turn on filters: Select the source data, including its headers, and choose Data > Filter.
- 4. Choose a year and month: Open the filter arrows in the Year and Month headers and select the values you want to show.

Frequently Asked Questions
Why doesn't formatting a date as a month change the slicer results?
Date formatting changes what Excel displays, not the underlying date value. Create a Month helper column with =TEXT(A2,"mmmm") and use that field in the slicer.
Why don't the new Year and Month fields appear in Insert Slicer?
Click the PivotTable, open PivotTable Analyze > Change Data Source, and make sure the source range includes both helper columns. Then select Refresh before opening Insert Slicer again.
Will selecting January show January from every year?
Yes. A Month helper column groups the same month name across years. Select a specific year in a separate Year slicer to narrow the results.
What if the Year formula returns an error?
Check the source date cell to make sure it contains a valid Excel date rather than text or an error. Correct the source value, fill the helper formula down, and refresh the PivotTable.




