Fix Excel Conditional Formatting Not Expanding After PivotTable Refresh
Question details
User needs conditional formatting rules to automatically apply to new rows added to a PivotTable upon refreshing.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Refreshing a PivotTable with thousands of rows after adding new underlying data.
- Observed behavior
- Newly added rows in the PivotTable do not inherit the existing conditional formatting rules.
Before modifying your conditional formatting rules, ensure your PivotTable is fully refreshed and identify the exact field names you want the formatting to cover.
Apply the Formatting Rule to the PivotTable Field
The most robust way to ensure formatting expands dynamically is to link the rule directly to the PivotTable field rather than static cell references.
When conditional formatting is applied using standard cell selection (e.g., $A$1:$A$100), it remains locked to those specific cells. PivotTables require rules to be applied to their logical structure so they can expand or contract as data refreshes.
Click on any cell within the PivotTable that currently has the correct conditional formatting applied.
Navigate to the Home tab on the ribbon, click 'Conditional Formatting', and select 'Manage Rules'.
Locate the rule that is failing to expand, click on it to highlight it, and then click 'Edit Rule'.
At the top of the Edit Formatting Rule dialog box, look for the 'Apply Rule To' section. Select the third option: 'All cells showing [Field Name] values' (or similar wording depending on your layout).
Click 'OK' to close the editor, then click 'Apply' and 'OK' in the Rules Manager.

Verify Data Types and Number Formats
Conditional formatting rules based on numerical criteria or percentages might fail if the newly added PivotTable data has a mismatched data type.
Manage PivotTables and Formatting Easily with WPS Spreadsheet
WPS Spreadsheet offers robust PivotTable features and dynamic conditional formatting that seamlessly updates as your data grows. Enjoy high compatibility with Microsoft Excel formats without the heavy subscription fees.
- 1. Open Your Workbook: Launch WPS Spreadsheet and open your existing Excel (.xlsx) workbook containing the PivotTable.
- 2. Access Conditional Formatting: Select a cell in your PivotTable, go to the Home tab, and click 'Conditional Formatting' > 'Manage Rules'.
- 3. Set Dynamic Range: Edit your rule and select the option to apply formatting to the entire PivotTable field rather than static cells.
- 4. Refresh Data: Navigate to the Data tab and click 'Refresh All' to instantly update your PivotTable and watch the formatting expand perfectly.

Frequently Asked Questions
Why does my conditional formatting disappear when I change the PivotTable layout?
When you add, remove, or rearrange fields, the underlying structure of the PivotTable changes. If your conditional formatting rule was applied to static cell references (like $B$5:$B$100) instead of the PivotTable fields themselves, the rule will break during the layout change. Always apply formatting rules to the specific PivotTable field to prevent this.
Can I use custom formulas for PivotTable conditional formatting?
Yes, you can use custom formulas. However, you must ensure that your formula references are relative to the top-left cell of the PivotTable data range (without dollar signs locking the row), so they evaluate correctly across the entire dynamic range as it expands.
How do I fix the 'Applies to' range if it keeps resetting to static cells?
If the 'Applies to' range keeps resetting to a static range, you need to edit the rule directly. In the Edit Formatting Rule dialog box, make sure you select the radio button for 'All cells showing [Field Name] values' at the top. This locks the rule to the field logic rather than the grid coordinates.




