Fix an Excel Pivot Table That Does Not Filter 2015 Data
Question details
The user needs an Excel PivotTable to filter records for 2015 consistently.

- Product
- Microsoft Excel PivotTable
- Device & OS
- not provided
- Scenario
- A PivotTable filters a source column containing formula-generated and hard-coded year values.
- Observed behavior
- Earlier years filter correctly, but 2015 returns no records. Some year values appear as dates, such as Jul-05.
Find the source column used for the year filter and check a few cells in the formula bar to determine whether they contain year numbers or actual dates. The helper formula below assumes the cells contain year numbers such as 2015.
Add a Text Year Column and Refresh the PivotTable
Use this method when the source column contains year numbers that are displayed as dates or have inconsistent data types.
A date format can make a number such as 2015 appear as a month and year without changing its underlying value. Converting year numbers to text gives the PivotTable a consistent filter field.
In the source data, add a column named Year Text. If the first year value is in R2, enter =TEXT(R2,"0") in the first data row of the new column.
Drag the formula's fill handle down through every source row. Check that the helper cells for the relevant records display 2015.
Click the PivotTable, select PivotTable Analyze > Change Data Source, and expand the range to include the Year Text column. Click OK.
Select PivotTable Analyze > Refresh. In the PivotTable Fields pane, add Year Text to Filters, then open its filter and select 2015.

Create a Consistent Year Filter in WPS Spreadsheets
Open the workbook in WPS Spreadsheets, add a text helper column for numeric years, and refresh the PivotTable with the expanded source range.
- 1. Open the workbook: In WPS Spreadsheets, choose Open and select the Excel workbook containing the PivotTable.
- 2. Create the helper column: Add a source column named Year Text, enter =TEXT(R2,"0") for the first row of numeric years, and fill the formula down.
- 3. Include the new column: Select the PivotTable and use its Change Data Source command to include the Year Text column in the source range.
- 4. Refresh and filter: Use the PivotTable Refresh command, add Year Text to the Filters area, and select 2015 from the filter.

Frequently Asked Questions
Why does a year like 2015 appear as Jul-05?
The cell may contain the number 2015 with a date format applied, so Excel displays it as a date serial. Select the source cell and check its underlying value in the formula bar.
Why doesn't the new year column appear in PivotTable Fields?
The column may be outside the PivotTable source range. Click the PivotTable, choose PivotTable Analyze > Change Data Source, include the new column, and refresh the PivotTable.
What formula should I use if the source contains actual dates?
For actual dates in R2, use =TEXT(R2,"yyyy") in the helper column and fill it down. If the column contains a mixture of actual dates and year numbers, standardize the source values before applying one formula.
Why might 2015 still return no records after I refresh?
Check that the helper cells for the expected records display 2015, that the source range includes all relevant rows, and that other PivotTable filters are not excluding them.




