Pivot Table Issues

Fix an Excel PivotTable Slicer That Shows No Results for Month and Year

Natalie TaylorNatalie Taylor Nov 18, 2026 869 views

Question details

The user needs to filter an Excel PivotTable by month and year independently.

Fix an Excel PivotTable Slicer That Shows No Results for Month and Year
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.
Before you start

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.

Solution 1Recommended

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.

1
Add a Year column

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.

2
Add a Month column

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.

3
Update the PivotTable source

Click the PivotTable and select PivotTable Analyze > Change Data Source. Include the new columns in the source range, then select PivotTable Analyze > Refresh.

4
Insert the slicers

With the PivotTable selected, choose PivotTable Analyze > Insert Slicer. Select Year and Month, then click OK.

5
Filter the results

Click a year in the Year slicer and a month in the Month slicer to display records for that combination.

Create Year and Month Helper Columns for PivotTable Slicers
Month selections can span years: A Month slicer selection such as January includes that month across all years unless you also select a year.
Filter dates in WPS Spreadsheets

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. 1. Open the workbook: Open WPS Spreadsheets and use Open to select the Excel workbook containing your source data.
  2. 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. 3. Turn on filters: Select the source data, including its headers, and choose Data > Filter.
  4. 4. Choose a year and month: Open the filter arrows in the Year and Month headers and select the values you want to show.
Filter source records independently by month and yearOpen and edit Microsoft Excel XLSX and XLS filesUse familiar spreadsheet formulas and filter controlsWork with a free, easy-to-use spreadsheet application
microsoft office alternative - wps office

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.