ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Errors & fixes
  3. Conditional Formatting Not Working in Excel? Fix It

Conditional Formatting Not Working in Excel? Fix It

By ExcelReady Team·Updated November 2, 2026·6 min read

The short answer

When conditional formatting is not working, the rule usually points at the wrong cells or data. Check four things: the $ signs in a formula rule (=$C2, not =C2 or =$C$2), numbers or dates stored as text, the Applies to range in Manage Rules, and whether a higher rule wins first. Then test the formula in a cell.

Key takeaways

  • Open Home > Conditional Formatting > Manage Rules and show rules for This Worksheet to see every rule and its Applies to range.
  • A formula rule is written for the top-left cell of the Applies to range. Lock the column with $C2 to colour whole rows.
  • Numbers stored as text break comparisons: in a formula, Excel treats any text as bigger than any number.
  • Type the rule's formula into a spare cell first. If it doesn't return TRUE where you expect, the rule won't either.
On this page+
  1. Quick checklist: why conditional formatting is not working
  2. Check every rule in Manage Rules
  3. Wrong $ signs in a formula rule
  4. Numbers or dates stored as text
  5. The formula is saved as text or returns an error
  6. The Applies to range broke after copying or inserting rows
  7. Test the formula in a cell first
  8. Practise it

When conditional formatting is not working in Excel, the rule itself is rarely broken. Almost always it points at the wrong cells, compares numbers that are really text, or loses to another rule. This guide walks through each cause in the order you should check it, with the fix for each, so you can get your highlights back in a few minutes.

Quick checklist: why conditional formatting is not working#

Start with the symptom you see, then jump to the matching fix:

What you seeMost likely causeFix
Nothing is highlightedFormula saved as text, or it never returns TRUECheck the = sign and test the formula in a cell
Only the first row works$ locks the row: =$C$2Use =$C2
The wrong rows are highlightedFormula written for the wrong rowWrite it for the top-left cell of Applies to
Small numbers are highlighted as "big"Numbers stored as textConvert to numbers or use VALUE
Some new rows are not highlightedApplies to range too short or splitFix the range in Manage Rules
A different colour showsA higher rule winsReorder rules or use Stop If True

If you're new to rules, the beginner's guide to conditional formatting explains the built-in options first.

Check every rule in Manage Rules#

The Rules Manager shows each rule, its formula, its format and the cells it applies to. Open it with Home > Conditional Formatting > Manage Rules (the same path on Windows and Mac).

  1. At the top, change Show formatting rules for from Current Selection to This Worksheet. Otherwise you only see rules for the cells you selected, and a rule that covers other cells looks missing.
  2. Read the Applies to column. It should cover all your data, such as =$A$2:$D$200.
  3. Look for duplicates. Several near-identical rules usually mean rows were copied and pasted.

Rules run from top to bottom. When two true rules set the same thing, such as fill colour, the higher rule wins. When they set different things, such as one bold font and one red fill, both apply. Tick Stop If True on a rule to stop the rules below it once it matches. Use the up and down arrows to change the order.

Wrong $ signs in a formula rule#

A formula rule is written as if for one cell: the top-left cell of the Applies to range. Excel then shifts the references for every other cell, exactly as if you filled the formula across and down. The $ signs decide what shifts.

Say your data is in A2:D10 and you want to colour every row where the amount in column C is over 100:

FormulaWhat happens
=C2>100The row moves correctly, but so does the column: A checks C, B checks D, and so on
=$C$2>100Every cell checks C2 only, so all rows look the same
=$C2>100Correct: the column is locked, the row moves, so every cell in a row checks that row's amount
=$C3>100Off by one row: each row is coloured based on the row below

The last one is a classic. It happens when your Applies to range starts in row 2 but you wrote the formula for row 3, or you selected the range from the bottom up. Always write the formula for the first row of the range.

Excel adds full $$ references when you click a cell while writing a rule. Press F4 on Windows (⌘T on Mac) to cycle through $C$2, C$2, $C2 and C2. The guide to mixed references like $C2 explains why this works, and how to highlight a whole row uses the same pattern.

Numbers or dates stored as text#

A number stored as text looks like a number but behaves like a word. It often comes from imports and copied web data, and usually sits on the left of the cell with a small green triangle.

This breaks comparisons in a surprising way. In a formula, Excel ranks any text above any number. So if B2 holds the text "80", the rule =$B2>100 returns TRUE and highlights it, while the real number 145 is highlighted correctly. Other rules fail the other way: Top 10, Above Average, data bars and color scales skip text cells, so those cells are never formatted.

You have two fixes:

  • Convert the data. Select the column, then use the warning triangle's Convert to Number, or Data > Text to Columns > Finish. The guide to fixing numbers stored as text shows every method.
  • Convert inside the rule. Write =VALUE($B2)>100. VALUE turns text like "80" into the number 80 and leaves real numbers unchanged. The VALUE function guide covers it.

Dates have the same problem. A rule like =$C2<DATE(2026,11,2) can't work on a date typed as text. Convert it with DATEVALUE, or Text to Columns with the right date order.

The formula is saved as text or returns an error#

A formula rule only formats a cell when the formula returns TRUE (or a non-zero number). Three things stop that:

  1. No equals sign. If you type $C2>100 without =, Excel saves it as the text ="$C2>100", which never returns TRUE. Open the rule with Edit Rule and check that it starts with = and has no extra quotes.
  2. The formula returns an error. A rule that gives #N/A or #VALUE! counts as FALSE, so nothing is formatted. This is common with lookups in rules. Wrap the part that can fail in IFERROR.
  3. Text doesn't match exactly. =$D2="Done" fails for "Done " with a trailing space. Use =TRIM($D2)="Done" if your data has stray spaces. Text comparisons ignore case, so "done" and "DONE" both match.

One more trap: while editing the rule box, the arrow keys move around the sheet and insert cell references. Press F2 first to move the cursor inside the formula instead.

The Applies to range broke after copying or inserting rows#

Copying, pasting and dragging cells copies their rules too. Over time, one rule can turn into many small rules with ranges like =$A$2:$D$7,$A$9:$D$12. New rows that fall in a gap get no formatting.

To clean up:

  1. In Manage Rules, with This Worksheet selected, delete the duplicate rules.
  2. Edit the Applies to box of the one rule you keep, for example =$A$2:$D$500.
  3. Click Apply, then OK.

To avoid the problem, use Paste Special > Values (Windows: Ctrl+Alt+V; Mac: ⌃⌘V) when you move data into a formatted sheet, or turn the range into an Excel table so rules grow with new rows.

Test the formula in a cell first#

The fastest way to debug a formula rule is to type the same formula into a spare cell next to the first row of data, then fill it down. Each cell shows TRUE or FALSE, which tells you exactly which rows the rule will format.

If row 2 shows TRUE when it shouldn't, the problem is the logic or the data, not the rule. Fix it in the cell, then copy the working formula back into the rule. The conditional formatting formula guide has more ready-made rules to test this way.

Practise it#

Try the exercise on this page: see why a text "80" counts as over the limit, then fix it with VALUE. Next, practise conditional formatting in a live spreadsheet, get the $ signs right with absolute and mixed references, and learn to spot fake numbers in the text and VALUE lesson. Each one checks your answer instantly.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

A rule =$B2>$E$2 should highlight invoices over the limit, but it also highlights B2, which shows 80. B2 is stored as text. In C2, test the fixed rule with VALUE: =VALUE(B2)>$E$2. It should return FALSE.

fx
ABCDEF
1
Invoice
Amount
Over limit?
Limit
2
INV-201
80
100
3
INV-202
145
4
INV-203
260
5
INV-204
60
6
INV-205
95
7
INV-206
310
8
9
10

Tip: Without VALUE, =B2>$E$2 returns TRUE because Excel ranks the text 80 above every number. VALUE turns the text into the number 80, and 80 is not greater than 100.

Practise this in a lesson

LessonConditional formattingMake important numbers stand out: highlight values over a limit, duplicate IDs and the top 3, then color whole rows with a formula rule and a $ on the column.LessonRelative vs absolute references ($)Lock a cell with $ so it doesn't move when you copy a formula, one of the most-tested Excel skills.LessonTEXT and VALUE: numbers to text and backFormat dates and dollar amounts inside sentences with TEXT, and turn digits stored as text into real numbers with VALUE.Function guideVALUEFix numbers stored as text with Excel's VALUE function, so SUM and lookups work again. Examples, common mistakes and a live practice exercise.

Frequently asked questions

Why is my conditional formatting not working?

+

The most common causes are wrong $ signs in a formula rule, numbers or dates stored as text, an Applies to range that doesn't cover the cells, or another rule higher in the list taking priority. Open Manage Rules to check each one.

Why does conditional formatting highlight the wrong cells?

+

The formula is usually written for the wrong row, or the $ signs are wrong. A formula rule must be written for the top-left cell of the Applies to range, such as =$C2>100 for a range starting in row 2.

Why does conditional formatting only work on the first row?

+

The formula uses absolute references like =$C$2>100, so every row checks C2. Remove the $ before the row number so it reads =$C2>100, and each row checks its own value.

Does conditional formatting work with numbers stored as text?

+

Not reliably. In a formula, text always counts as greater than any number, and rules like Top 10, data bars and color scales skip text cells. Convert the text to real numbers, or wrap the reference in VALUE inside the rule.

Why did my conditional formatting stop working after I copied rows?

+

Copying and pasting cells copies their rules too, which can split one rule into many small rules with broken ranges. In Manage Rules, delete the extra copies and set one rule with an Applies to range that covers all the rows.

Sources

  • Use conditional formatting to highlight information - Microsoft Support
  • Convert numbers stored as text to numbers - Microsoft Support
  • Switch between relative, absolute, and mixed references - Microsoft Support

Written and checked by the ExcelReady Team. First published November 2, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. Quick checklist: why conditional formatting is not working
  2. Check every rule in Manage Rules
  3. Wrong $ signs in a formula rule
  4. Numbers or dates stored as text
  5. The formula is saved as text or returns an error
  6. The Applies to range broke after copying or inserting rows
  7. Test the formula in a cell first
  8. Practise it

Keep reading

Data tools· 5 min read

Conditional Formatting in Excel: Highlight What Matters

Conditional formatting colors cells automatically when they meet a rule. Select the cells, go to Home > Conditional Formatting, and pick a rule such as Highlight Cells Rules > Greater Than. To color whole rows, use New Rule > Use a formula, with a $ before the column letter: =$E2>5000. Rules update whenever values change.

Data tools· 5 min read

Conditional Formatting With a Formula in Excel

To use a conditional formatting formula in Excel, select the cells, go to Home > Conditional Formatting > New Rule and choose Use a formula to determine which cells to format. Type a formula that returns TRUE or FALSE for the top-left cell, such as =$E2>5, and pick a format. Excel colours every cell where the formula is TRUE.

Data tools· 5 min read

Highlight an Entire Row Based on a Cell Value

To highlight a row based on a cell value, select the whole table without the header, such as A2:E9, then go to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format. Type =$D2="Late", choose a fill colour. The $ locks column D, so each row checks its own status.

More on errors & fixes

  • Excel Copy and Paste Not Working? Causes and Fixes
  • COUNTIF Not Working? Common Causes and Fixes
  • Excel Date Showing as a Number? How to Fix It
  • Excel Swapping Day and Month? How to Fix Dates
  • #DIV/0! Error in Excel and How to Avoid It
  • Every Excel Error Explained: #N/A to #SPILL!
All errors & fixes articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free