Formatting Issues

Fix Excel Conditional Formatting Formulas That Change When Saved

Phi Hung VoPhi Hung Vo Dec 2, 2026 868 views

Question details

The user needs an Excel conditional formatting formula to evaluate the correct row after the workbook is saved.

Fix Excel Conditional Formatting Formulas That Change When 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.
Before you start

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.

Solution 1Recommended

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.

1
Open the rules manager

In Excel, select Home > Conditional Formatting > Manage Rules. Choose This Worksheet from the rule display list if you cannot see the rule.

2
Check the applied range

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.

3
Match the formula to the range

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.

4
Save and verify

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.

Align the formula with the first row of the applied range
Check the result after reopening: If Excel still changes the reference and the rule evaluates the wrong rows, recreate the rule and check for Excel updates.
Free Microsoft Office alternative

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.

Create and manage conditional formatting rules in WPS SpreadsheetsCompatible with Microsoft Excel formats, including XLSX and XLSFamiliar interface for an easier move from Microsoft OfficeFree and lightweight office suite
microsoft office alternative - wps office

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.