How to Fix Excel PivotTable Dates and Categories Not Refreshing
Question details
The user is unable to clear obsolete dates and categories from an Excel PivotTable using the 'Refresh All' function after copying a workbook.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Attempting to update PivotTable data after copying a workbook using the Save As feature.
- Observed behavior
- The PivotTable retains old dates and categories in its pivot cache, and clicking 'Refresh All' fails to remove these obsolete items.
Before modifying your PivotTable cache settings, ensure that your data source range is correctly defined and does not contain any unintended blank columns or rows.
Clear Retained Items from PivotTable Options
Adjusting the PivotTable options to prevent Excel from saving deleted items in the cache is the most effective way to clear old dates and categories.
By default, Excel retains items deleted from the data source in the pivot cache. This is done so that custom formatting and calculated fields aren't lost when data changes. To permanently remove obsolete categories, you must change this behavior in the settings.
Right-click anywhere inside the affected PivotTable and select 'PivotTable Options' from the context menu.
In the PivotTable Options dialog box, click on the 'Data' tab located at the top.
Locate the 'Retain items deleted from the data source' section. Click the drop-down menu next to 'Number of items to retain per field' and change it from 'Automatic' to 'None'.
Click 'OK' to save the settings. Finally, right-click the PivotTable again and select 'Refresh' to clear the old dates and categories.

Verify and Update the PivotTable Source Range
Sometimes a copied workbook retains the absolute file path to the original workbook's data range, meaning your PivotTable is looking at the wrong data entirely.
Create and Refresh Pivot Tables Easily in WPS Spreadsheet
WPS Spreadsheet provides a seamless and user-friendly experience for analyzing data with Pivot Tables. You can easily refresh data, manage source ranges, and avoid frustrating cache issues, all while maintaining perfect compatibility with your existing Excel files.
- 1. Open Your Workbook: Launch WPS Spreadsheet and open your existing .xlsx workbook.
- 2. Access PivotTable Tools: Click on your PivotTable to activate the dedicated 'PivotTable Tools' tab on the top ribbon.
- 3. Adjust Cache Settings: Click on 'Options', navigate to the Data tab, and ensure item retention is set to 'None'.
- 4. Refresh Instantly: Click the 'Refresh' button on the ribbon to instantly update all dates and categories.

Frequently Asked Questions
Why does my Excel PivotTable still show deleted data?
By default, Excel retains items deleted from the data source in the pivot cache. This prevents the loss of custom formatting and calculated fields associated with those items. To remove them, you must change the 'Number of items to retain per field' setting to 'None' in the PivotTable Options.
Does 'Refresh All' update the pivot cache?
'Refresh All' updates the values from the source data, but it does not automatically purge old categories from the background cache if the retention setting is set to 'Automatic'. You must manually clear the cache settings first for the refresh to drop obsolete items.
How do I clear the PivotTable cache on Excel for Mac?
The process on Mac is identical to Windows. Right-click the PivotTable, select 'PivotTable Options', navigate to the 'Data' tab, change the 'Retain items deleted from the data source' drop-down to 'None', and then refresh your PivotTable.




