Conditional highlighting in Excel automatically changes the look of a cell based on its value, so numbers that matter jump out without you scanning every row. To set it up, select the cells you want judged, go to Home > Conditional Formatting, pick a rule type such as Highlight Cells Rules or a colour scale, and confirm the range Excel applies it to. That is the whole loop: selection, rule, range, done. Once you know it, you can flag overdue dates, colour a whole row from one value, shade a three-colour heat map, or add your own icon set without writing a single formula.

A quick note before the steps: menus, dialog labels and the exact names of some options can differ slightly by Excel version, platform (Windows, Mac, web) and region. Where the wording varies, look for the option that means the same thing rather than hunting for an identical label.

What You'll Need

  • Excel for Windows, Excel for Mac, or Excel for the web. The main Conditional Formatting menu is in the same place (Home tab) on all three, though a few rule types and dialog details differ.
  • A spreadsheet with data already entered, ideally with a clear header row.
  • Data with no stray spaces or text where numbers should be. Clean values make rules behave predictably.

Step-by-Step

  1. Select exactly what you want to judge. Drag over the cells that hold the values your rule will test, such as C2:C200. Do not include the header unless the header itself should be tested. If you want the whole row coloured based on one column, you will change the range later, in step 6.
  2. Open the rules menu. On the Home tab, click Conditional Formatting. The gallery has four groups: Highlight Cells Rules, Top/Bottom Rules, Data Bars, Colour Scales and Icon Sets.
  3. Pick the simplest rule for your goal. For a threshold, choose Highlight Cells Rules and then Greater Than, Less Than, Between, Equal To, or Text That Contains. For ranking, choose Top/Bottom Rules. For visual density, pick Data Bars or Colour Scales. For status markers, pick Icon Sets.
  4. Set the values in the small dialog. For Greater Than, type the number or click a cell that holds it. Leave the dropdown on the suggested format (for example Light Red Fill with Dark Red Text) or choose Custom Format to set your own fill and font. Press OK. Your cells should change immediately.
  5. Test it. Type a value that should and should not trigger the rule into an in-range cell. If nothing happens, the rule is likely scoped to the wrong cells or the values are stored as text, which is covered below.
  6. Apply one rule to a whole row. Select the full row range (for example A2:F200) and start a New Rule. Choose Use a formula to determine which cells to format, then write a formula that refers to the decision column with a locked column, such as =$C2="Overdue" or =$D2
  7. Manage overlapping rules. Go to Conditional Formatting > Manage Rules. Change the Show formatting rules for dropdown to This Worksheet to see everything. Use the arrows to set priority and tick Stop If True where a higher rule should win.
  8. Copy rules to other cells. Use the Format Painter on a formatted cell, or copy the cell and use Paste Special > Formats. Rules that refer to fixed ranges will still point at the old range in some cases, so verify with Manage Rules.
  9. Remove a rule when it is no longer needed. Select the cells and choose Conditional Formatting > Clear Rules > Clear Rules from Selected Cells, or Clear Rules from Entire Sheet to wipe them all.

Common Mistakes

  • Selecting the wrong range before clicking the menu. Conditional Formatting acts on the selection at the moment you open it. A rule applied to A1:A10 will silently ignore data in A11.
  • Forgetting the dollar sign in row formulas. Using =C2="Overdue" instead of =$C2="Overdue" lets the reference drift sideways, so rows colour unpredictably.
  • Testing numbers stored as text. Numbers imported with leading apostrophes or pasted as text do not trigger numeric rules. Convert them with Data > Text to Columns or VALUE.
  • Assuming a colour is a value. Conditional formatting only changes appearance. You cannot sum "the red cells" directly; test the underlying value or formula instead.
  • Copying a sheet and not checking rules. Duplicated sheets can carry duplicate rules that stack and fight each other. Review Manage Rules after copying.
  • Using it as a substitute for data validation. Conditional formatting flags bad data after entry; it does not prevent the entry.

Tips

  • Use a formula rule with TODAY() for live deadline tracking: =$B2=TODAY()) highlights work due this week.
  • Keep rule count low on large sheets. Many formula rules over thousands of rows slow recalculation noticeably.
  • Use relative references carefully in referenced ranges: the top-left cell of your selection is the one Excel anchors the formula to.
  • Use Icon Sets for trend arrows but pair them with visible numbers, since icons alone are hard to read on printed pages.
  • Name a single helper column for the decision value (for example a Status column) rather than building many one-off rules.
  • Save a copy before you clear rules from an entire sheet, since clearing cannot be undone once you save.

Troubleshooting

  • Nothing happens at all. Check the range in Manage Rules, confirm the rule is enabled, and verify the cells are not formatted as text. Also check whether a higher-priority rule with Stop If True is blocking it.
  • Wrong cells are coloured. Almost always a reference problem. Open Manage Rules, click the rule, and inspect the Applies to box and the formula for missing or extra dollar signs.
  • Colour only appears on some rows. Reusing a copied rule that points at a fixed range causes this. Rewrite the rule from the New Rule dialog with the full intended range selected.
  • Formatting disappears after a paste. Pasting plain values removes formatting. Use Paste Special > Formats when you need the look preserved.
  • The rule won't accept a formula. Check the formula starts with = and returns TRUE or FALSE. A VLOOKUP that returns #N/A leaves the rule silently inactive.
  • Performance drags. Remove rules you no longer use, limit formula rules to the rows that actually have data, and avoid whole-column ranges like A:A.

If none of that helps, copy the data to a new workbook, rebuild one rule on a small range, and confirm it works before scaling it up. That isolates whether the issue is in the rule or in the data.

Frequently Asked Questions

Can I highlight a whole row based on one cell?

Yes. Use a formula rule on the whole row range, with the decision column locked to the left, for example =$C2="Overdue".

Does conditional formatting change the cell's actual value?

No. It only changes the display. Formulas still read the real value, so sums and filters behave normally.

Why does my number turn red but a similar cell doesn't?

Most likely one value is stored as text. Check with ISNUMBER or convert the column via Data > Text to Columns.

Can I use formulas in the Highlight Cells Rules?

Only indirectly. For anything beyond a simple comparison, use New Rule > Use a formula to determine which cells to format.

Will the formatting stay when I print or export to PDF?

Yes, the visible formatting prints. But icons and very light fills can be hard to read in greyscale.

Can I give different colours to different rules at the same time?

Yes. Use Manage Rules to set priority and tick Stop If True so only the first matching rule applies.