keepcalculator

06 Numbers and Powers

Conditional Formatting Scope: Other Cells & Sheets

Card No. 06·48930 · Updated · Standard formula, shown below

Average pace 5.00 min/km
Average speed
12.00 km/h
Result
Finish time
50 min
You entered
Distance
10 km
You entered
You enter
Finish time, Distance
You get
Average pace, Average speed
Rounding
2 dp

Conditional formatting scope refers to which cells a formatting rule applies to. You can scope a rule to a single cell, a range, an entire column or row, or even other sheets in the same workbook, and the scope is controlled by the “Applies to” field in the rule editor. This article explains how scope works, how to change it, and how to avoid the common mistakes that break conditional formatting.

Formula

The calculator above is a simple pace calculator, not related to conditional formatting, but it demonstrates how a formula uses inputs to produce an output. The average pace is the finish time divided by the distance:

pace = t / d

Where:

  • t = finish time in minutes
  • d = distance in kilometers

The average speed is the distance divided by the time in hours:

speed = d / (t / 60)

Both outputs are rounded to two decimal places.

Worked Example

Using the default values (t = 50 minutes, d = 10 km):

  1. pace = 50 / 10 = 5.00 min/km
  2. speed = 10 / (50 / 60) = 10 / 0.8333 = 12.00 km/h

The calculator returns an average pace of 5.00 min/km and an average speed of 12.00 km/h.

What Does “Scope” Mean in Conditional Formatting?

In Excel, Google Sheets, and other spreadsheet apps, every conditional formatting rule has a scope: the set of cells the rule watches. When you create a rule, the “Applies to” field (or “Range” in Google Sheets) defines that scope. The scope can be as small as one cell or as large as an entire sheet. Changing the scope is how you tell the app which cells should change color when the condition is met.

For example, a rule that highlights cells greater than 100 might apply only to B2:B10. If you later add data in B11, that new cell won’t be highlighted unless you expand the scope. Understanding scope is the key to making conditional formatting work predictably across large datasets.

How to Change the Scope of an Existing Rule

You can edit the scope of a rule after it’s created. The steps are nearly identical in Excel and Google Sheets:

  1. Select any cell in the range that already has conditional formatting.
  2. Open the conditional formatting menu: Home → Conditional Formatting → Manage Rules (Excel) or Format → Conditional formatting (Google Sheets).
  3. Find the rule you want to change.
  4. In the “Applies to” box (Excel) or the “Range” box (Google Sheets), type the new range, or click the range selector and drag over the cells you want.
  5. Click Apply or Done to save.

You can also change the scope by copying a rule to a new range: in Excel, use “Duplicate Rule” and then edit the applies-to field; in Google Sheets, copy the cell and use “Paste special → Paste conditional formatting” to apply the same rule to a new range.

Scoping to Entire Columns, Rows, or Other Sheets

You are not limited to a contiguous block of cells. The scope can be:

  • An entire column: e.g., A:A in Excel or A1:A1000 in Google Sheets (the latter avoids formatting empty cells).
  • An entire row: e.g., 1:1 in Excel.
  • Multiple non-adjacent ranges: separate them with commas, e.g., A1:A10, C1:C10.
  • Another sheet in the same workbook: In Excel, you can type a reference like Sheet2!A1:B10 in the Applies to field. In Google Sheets, you can’t directly reference another sheet in the range box, but you can use a formula that references another sheet (e.g., =Sheet2!A1>10) and apply it to the current sheet’s cells.

When you apply a rule to an entire column, be careful with performance: formatting 1,000,000 cells can slow down the app. It’s better to limit the scope to the actual data range, even if that range is large.

Relative vs. Absolute References in the Formula

The scope interacts with the formula’s references. When you write a formula for a conditional formatting rule, the references are usually relative to the top-left cell of the scope. For example, if the scope is B2:B10 and the formula is =B2>100, Excel interprets B2 as the cell being evaluated. If you use an absolute reference like $B$2, the rule will always check cell B2, not the cell in the current row.

This is a common source of confusion. To highlight each row based on its own value, use a relative reference (no dollar signs). To compare every cell against a fixed value, use an absolute reference (with dollar signs).

Common Mistakes and How to Fix Them

  • Rule doesn’t apply to new data: The scope is fixed. Expand the range or use a table (Excel) or a named range to automatically include new rows.
  • Wrong cells are highlighted: The formula uses absolute references when it should use relative ones. Check the dollar signs.
  • Rule works on the wrong sheet: In Excel, if you type a sheet name in the Applies to field, make sure the sheet name is spelled correctly and the sheet exists. In Google Sheets, you can’t directly scope to another sheet; you need to use a formula that references it.
  • Performance issues: Scoping to entire columns or rows can slow down large files. Limit the scope to the used range.
  • Overlapping rules: When two rules apply to the same cell, the first rule in the list takes precedence (unless “Stop If True” is checked). Reorder the rules to get the desired effect.

How to Choose the Right Scope

Choosing the right scope depends on what you want to highlight:

  • Highlight a single cell: Scope to that one cell (e.g., B2).
  • Highlight a row based on a value in one column: Scope to the entire row (e.g., A2:D2) and use a formula with a mixed reference like =$A2>100 (column A locked, row relative).
  • Highlight a column based on a value in the header: Scope to the column and use a formula with a mixed reference like =B$1>10 (row 1 locked).
  • Highlight a whole sheet: Scope to the entire used range (e.g., A1:Z1000) and use a formula that references the top-left cell.

For most dashboards, it’s best to scope to the exact data range, not the whole sheet, to keep things fast and predictable.

Frequently Asked Questions

Can conditional formatting apply to another sheet?

In Excel, yes. You can type a cross-sheet reference like Sheet2!A1:B10 in the Applies to field. In Google Sheets, you cannot directly set the range to another sheet, but you can use a formula that references another sheet (e.g., =Sheet2!A1>10) and apply it to the current sheet’s cells.

Why is my conditional formatting not working on new rows?

Because the scope is fixed. If you add rows below the formatted range, they are not included. Expand the Applies to range, or convert your data to an Excel Table (Insert → Table) so the formatting automatically extends to new rows.

How do I make conditional formatting apply to an entire row?

Select the rows you want to format (e.g., A2:D10), create a new rule with a formula, and use a mixed reference like =$A2>100. The dollar sign locks the column, and the relative row number adjusts for each row.

What is the difference between relative and absolute references in conditional formatting?

Relative references (like B2) change as the rule is applied to each cell in the scope. Absolute references (like $B$2) always refer to the same cell. Use relative references when you want the rule to evaluate each cell’s own value; use absolute references when you want to compare against a fixed cell.

Can I use conditional formatting across different sheets in Google Sheets?

No, the range must be on the same sheet, but you can use a formula that references another sheet. For example, to highlight A1 on Sheet1 if Sheet2!B1 is greater than 10, set the range to A1 and the formula to =Sheet2!B1>10.

Why does my conditional formatting stop working after I copy cells?

Copying and pasting cells can overwrite the rule’s scope or change the formula references. To avoid this, use “Paste special → Paste conditional formatting” (Google Sheets) or duplicate the rule and edit the applies-to field (Excel).

Related

Formula used
in t | Finish time | min | 50 | 0
in d | Distance | km | 10 | 0 | 100000
out pace | Average pace | min/km | t / d | 2
out speed | Average speed | km/h | d / (t / 60) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →