Edit Conditional Formatting Rule: How To

How-to basics · Updated November 23, 2026

To edit a conditional formatting rule in Excel, select the range that has the rule, go to Home > Conditional Formatting > Manage Rules, choose the rule from the list, and click Edit Rule. This opens the Edit Formatting Rule dialog where you can change the condition, the format, or the range the rule applies to.

What Conditional Formatting Rules Are

Conditional formatting is an Excel feature that automatically applies formatting—like fill color, font color, or borders—to cells that meet a condition you define. For example, you can highlight all sales figures above $10,000 in green, or flag dates older than 30 days in red. The “rule” is the combination of the condition (the logic) and the format (the visual style). When the condition is true for a cell, the format is applied.

Each rule belongs to a specific range of cells, and a single range can have multiple rules. Excel evaluates rules in priority order, and the first rule that matches a cell wins unless you check “Stop If True.” Understanding how to edit a rule is essential because conditions change—your sales threshold may go up, or you might want a different color.

How to Open the Rules Manager

The Rules Manager is the central hub for viewing, editing, and deleting conditional formatting rules. Here’s how to get there:

  • Select any cell in the range that has the rule you want to change (you don’t need to select the entire range).
  • Go to Home > Conditional Formatting > Manage Rules.
  • In the “Conditional Formatting Rules Manager” dialog, use the “Show formatting rules for” dropdown to choose “This Worksheet” to see all rules, or pick a specific range.

On a Mac, the path is the same: Home > Conditional Formatting > Manage Rules. In Excel for the web, click Conditional Formatting > Manage Rules in the Home tab.

Editing a Rule Step by Step

Once you’re in the Rules Manager, follow these steps:

  1. Click the rule you want to edit—it will be highlighted.
  2. Click Edit Rule (or double-click the rule).
  3. In the “Edit Formatting Rule” dialog, you’ll see the rule type (e.g., “Format only cells that contain”), the condition fields, and a “Format” button.
  4. Change the condition as needed. For example, if the rule is “Cell Value > 100,” change 100 to 500.
  5. Click Format to change the fill, font, border, or number format.
  6. Click OK to close the Format dialog, then OK again to apply the changes.

If you need to change the range that the rule applies to, do not use Edit Rule. Instead, in the Rules Manager, click the rule, then click the “Applies to” box at the bottom and type a new range (e.g., = $A$2:$A$100) or select it on the sheet. This is a common mistake—editing the range inside the Edit Rule dialog is not possible.

Common Rule Types and How to Edit Them

Excel offers several rule types, and the edit dialog changes slightly depending on which one you use:

  • Format only cells that contain: You set a comparison (greater than, less than, between, equal to, text containing, etc.) and a value. Edit the value or the comparison operator.
  • Use a formula to determine which cells to format: You edit the formula in the “Format values where this formula is true” box. For example, =AND(A2>100, A2<200) highlights cells between 100 and 200. Remember that the formula is relative to the top-left cell of the range.
  • Color Scales, Data Bars, and Icon Sets: These have a “Edit the Rule Description” area where you can change the minimum/maximum values, the color, or the icon style. For data bars, you can also change the bar color and whether negative values get their own color.

When editing a formula-based rule, be careful with absolute vs. relative references. If your range starts at A2, write the formula as it applies to A2 (e.g., =A2>100), and Excel will adjust it for each cell in the range.

Why Won’t My Edit Apply? (Troubleshooting)

Sometimes you edit a rule and nothing seems to change. Here are the usual culprits:

  • Wrong range selected: You edited a rule that applies to a different range than the cells you’re looking at. Check the “Applies to” box in the Rules Manager.
  • Rule priority: If another rule with a higher priority (higher up in the list) already matches the cell, your edited rule won’t show. Use the up/down arrows to reorder rules.
  • Stop If True: If a rule above has “Stop If True” checked, later rules are never evaluated for that cell.
  • Formatting not visible: The format you chose might be too subtle (e.g., a light font color). Also, check if the cell has manual formatting that overrides conditional formatting—manual formatting takes precedence.
  • Relative formula errors: In a formula rule, if you used absolute references like $A$2 instead of A2, the rule will only check the first cell for every cell in the range.

Editing Rules in Google Sheets vs. Excel

Google Sheets handles conditional formatting differently. To edit a rule in Sheets:

  1. Select the range, then go to Format > Conditional formatting.
  2. The “Conditional format rules” panel opens on the right, showing all rules for that range.
  3. Click a rule to expand it, then edit the “Apply to range,” the condition, or the formatting style.
  4. Changes apply automatically as you type.

In Sheets, you cannot edit the range from the Rules Manager because there is no separate manager—you see rules only for the selected range. To see all rules on the sheet, select the whole sheet (click the rectangle at the top-left) and then open the panel. Excel’s Rules Manager is more powerful because it shows every rule on the sheet in one place.

Frequently Asked Questions

How do I change the range of a conditional formatting rule?
In Excel, open Manage Rules, click the rule, then edit the “Applies to” field at the bottom of the dialog. Type a new range or select it on the sheet. In Google Sheets, select the range, open the panel, and change the “Apply to range” box.

Can I edit a rule without opening the Rules Manager?
No, the Rules Manager is the only way to edit an existing rule in Excel. You can’t click a formatted cell and edit directly. In Google Sheets, you can select the range and open the panel, which is faster.

Why does my edited rule not work on new rows?
If you add rows below the range, the rule does not automatically extend unless you include those rows in the “Applies to” range. For example, if your rule applies to A2:A100 and you add a row at A101, you must update the range to A2:A101. Using an Excel Table (Insert > Table) makes rules automatically apply to new rows.

What does “Stop If True” do?
When a rule has “Stop If True” checked, Excel stops evaluating subsequent rules for that cell if the current rule matches. This is useful when you want a specific format to override all others. Edit it by checking the box in the Rules Manager.

Can I edit a rule’s format without changing the condition?
Yes. Open Manage Rules, select the rule, click Edit Rule, then click the Format button. Change the fill, font, border, or number format. Leave the condition fields untouched.

Why is my rule grayed out in the Rules Manager?
A rule can be grayed out if it is a “data bar,” “color scale,” or “icon set” rule that is not editable via the standard Edit Rule button? Actually, they are editable. If it’s truly grayed out, the rule may be from a table or a PivotTable, and you need to edit it from the table’s design tab or the PivotTable options. For normal ranges, this shouldn’t happen.

Keyboard Shortcuts and Quick Tips

There’s no direct keyboard shortcut to open the Rules Manager, but you can use the Alt key sequence: Alt > H > L > R (Home tab, Conditional Formatting, Manage Rules). On a Mac, press Option + Command + L? Actually, the Mac shortcut is Command + Option + L? No, the correct Mac path is the same menu, but there is no default shortcut. You can add it to the Quick Access Toolbar for one-click access.

When editing many rules, consider using named ranges in the “Applies to” field (e.g., =SalesData) so you only update the range definition once. Also, remember that conditional formatting rules are stored with the worksheet, not the workbook, so if you copy a sheet to another workbook, the rules come along.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.