Fix Excel Conditional Formatting Formulas That Change When Saved
Question details
The user needs an Excel conditional formatting formula to evaluate the correct row after the workbook is saved.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A conditional formatting rule uses a relative row reference to check whether column B contains Yes.
- Observed behavior
- After saving, Excel changes a reference such as $B2 to $B1048541, and the rule no longer formats the expected cells.
Identify the cells the rule should format and the first row of that range. Check whether the rule should cover the entire column or only rows containing data.
Align the formula with the first row of the applied range
Use this method when the formula's relative row reference does not match the first row in the rule's Applies to range.
A conditional formatting formula is evaluated relative to the first cell of its applied range. The dollar sign in $B2 locks column B while allowing the row number to change for each row.
In Excel, select Home > Conditional Formatting > Manage Rules. Choose This Worksheet from the rule display list if you cannot see the rule.
Find the rule and inspect its Applies to field. Note the first row: $B:$B starts at row 1, while $A$2:$Z$1000 starts at row 2.
Select the rule, choose Edit Rule, and enter =$B1="Yes" for $B:$B or =$B2="Yes" for $A$2:$Z$1000. Adjust both the formula and Applies to range to match your intended cells.
Click OK and Apply, save the workbook, then close and reopen it. Return to Home > Conditional Formatting > Manage Rules and check the formula, applied range, and formatting on rows with and without Yes.

Recreate the conditional formatting rule if the change persists
Use this approach if an aligned rule still points to the wrong rows after saving and reopening.
Work with spreadsheet formatting in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface. Open compatible Excel files and work with conditional formatting as you move between office suites; it does not repair Excel's save behavior.

Frequently Asked Questions
Why should a whole-column rule use $B1 instead of $B2?
The range $B:$B starts at row 1, so a formula checking column B for each row should start with =$B1="Yes". Using $B2 shifts the check down one row.
What does the dollar sign in $B2 do?
It locks the reference to column B while leaving the row relative. This lets a rule applied to multiple rows check the corresponding cell in column B.
Where can I find the Applies to range?
In Excel, open Home > Conditional Formatting > Manage Rules. Select This Worksheet if needed, then look at the Applies to field beside the rule.
What if the formula still changes after I save?
Reopen the workbook and check both the formula and Applies to range in Manage Rules. If the wrong rows are still being evaluated, delete and recreate the rule, then check for Excel updates.




