Excel Highlighting: How to Highlight Cells and Rows
In this article
To highlight cells in Excel, select the cells and use Home > Fill Color (the paint bucket icon) for a static color, or Home > Conditional Formatting for rules that update automatically. Both are on the Home tab and work in Excel for Windows, Mac, the web and mobile apps, though the mobile ribbon is trimmed down. Nothing needs to be installed first; the main requirement is a workbook with data and a clear idea of whether you want a one-off color or a rule that keeps working as values change.
What You'll Need
- Excel for Windows, Mac, the web or mobile (the steps below note where mobile differs).
- A workbook with data in it, or a blank sheet to practise on.
- For rule-based highlighting, a column with consistent values (numbers, dates or text) so the rule can compare them.
Step-by-Step
- Decide between static and rule-based highlighting. Static fill stays the same color no matter what the cell contains. Conditional formatting changes color when the value changes. Use static fill for labels and headers; use conditional formatting for anything you will keep updating.
- Select the range for static highlighting. Click the first cell, hold Shift and click the last, or drag across the range. To highlight an entire row, click the row number on the left edge; to highlight a column, click the column letter. Ctrl+A selects the whole sheet.
- Apply a fill color. On the Home tab, click the arrow next to Fill Color (the paint bucket) and pick a color. The button applies the last color used if you click the bucket itself. To remove a fill, select the cells and choose No Fill from the same menu.
- Highlight text instead of the background. Use the Font Color button (the letter A with a color bar) on the same Home tab. This is useful when the fill color would hide gridlines or make the sheet look busy.
- Start a conditional formatting rule. Select the range, then go to Home > Conditional Formatting. The menu groups options into Highlight Cells Rules, Top/Bottom Rules, Data Bars, Color Scales and Icon Sets. Labels can differ slightly by version and region.
- Highlight values above, below or equal to a number. Choose Highlight Cells Rules > Greater Than (or Less Than, Between, Equal To), type the value in the box, pick a preset format such as Light Red Fill with Dark Red Text, and click OK. The rule applies instantly and updates when values change.
- Highlight text that contains a word. Choose Highlight Cells Rules > Text that Contains, type the word, choose a format and click OK. This is case-insensitive, so "paid" and "Paid" both match.
- Highlight duplicates or unique values. Choose Highlight Cells Rules > Duplicate Values, then pick Duplicate or Unique in the dropdown and choose a format. This is the fastest way to spot repeated invoice numbers or duplicate entries.
- Highlight whole rows based on one column. Select the full data range starting from the top-left cell (for example A2:D100), then choose Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format. Enter a formula such as
=$D2="Overdue"and choose a format. The dollar sign locks the column so the whole row is judged by column D; the row number stays relative so each row is checked separately. - Highlight dates in the next week or month. Choose Highlight Cells Rules > A Date Occurring and pick an option such as Next Week or Last Month. Excel uses your system date, so check the computer's clock if results look wrong.
- Review and edit rules. Go to Home > Conditional Formatting > Manage Rules. Select This Worksheet in the dropdown to see every rule. You can edit a rule, change its range, tick Stop If True to prevent later rules from overriding it, or delete it.
- Clear highlighting you no longer want. For static fill, select the cells and choose Home > Fill Color > No Fill. For rules, use Home > Conditional Formatting > Clear Rules > Clear Rules from Selected Cells or Clear Rules from Entire Sheet.
- On mobile, use the simplified ribbon. In the Excel app, select cells, open the Home tab and tap the Fill Color icon. Conditional formatting is available under Home > Conditional Formatting on phones and tablets, but the list of rule types is shorter than on desktop. For complex formulas, set the rule up on a computer and open the file on mobile to view it.
Common Mistakes
- Using static fill for data that changes. A red cell stays red after the value is fixed. Use conditional formatting for anything that moves.
- Selecting the wrong range for a row rule. If you select only column A, the rule cannot see the values in column D. Select the whole table, then write the formula against the deciding column.
- Forgetting the dollar sign in formulas.
=D2="Overdue"shifts the reference across columns;=$D2="Overdue"keeps it fixed to column D. - Stacking rules that fight each other. Two rules can both apply to the same cell. The first rule in the Manage Rules list wins unless Stop If True is set, so order matters.
- Highlighting with font color only. Colored text is easy to miss and hard to read for some users. Pair it with bold or a light fill.
- Assuming highlighting carries into print or PDF. Fill colors print by default, but check File > Print preview; very light fills can disappear on some printers.
Tips
- Use a light fill (pale yellow, light red) with dark text so the sheet stays readable.
- Copy a formatted cell with the Format Painter on the Home tab to repeat the same highlight elsewhere.
- Name your ranges (Formulas > Define Name) so conditional formatting rules are easier to read and edit later.
- Keep the number of rules per sheet modest; dozens of overlapping rules make a workbook slow and confusing.
- Use Data Bars or Color Scales when you want to show relative size rather than flag a specific value.
Troubleshooting
- The rule does nothing. Check the Applies To range in Manage Rules. A rule pointed at the wrong cells will not fire. Also confirm the cell values are the type you expect: text that looks like a number (for example, a number stored as text) will not match a Greater Than rule.
- Only some rows highlight. The formula probably uses a fixed row reference. Remove the dollar sign before the row number so each row is evaluated separately.
- Colors look wrong or overlap. Open Manage Rules and check the order. Move the most important rule to the top, or tick Stop If True on it.
- Highlighting disappeared after a copy or paste. Pasting values over formatted cells can strip rules. Paste with Paste Special > Formats to keep them, or reapply the rule to the new range.
- Dates highlight unexpectedly. Excel reads dates from the system clock. If your computer's date is wrong, date-based rules will be wrong too.
- The file is slow. Large ranges with many rules, especially whole-column references, slow recalculation. Limit rules to the used range and delete rules you no longer need.
Frequently Asked Questions
Can I highlight a cell based on text in another cell?
Yes. Use a formula rule such as =$B2="Yes" applied to the range you want colored. The rule reads the other cell and formats the current one.
Does highlighting work in Excel for the web?
Yes, both Fill Color and Conditional Formatting are available in Excel for the web. The rule options are close to the desktop version, though some advanced settings are desktop-only.
How do I remove all highlighting at once?
Select the sheet, choose Home > Fill Color > No Fill for static colors, then Home > Conditional Formatting > Clear Rules > Clear Rules from Entire Sheet for rules.
Can I highlight an entire row when one cell matches?
Yes. Select the full table, create a formula rule with a locked column reference such as =$D2="Overdue", and choose your fill color.
Will highlighting survive when I save as PDF?
Fill colors and conditional formatting are included in the PDF export. Check the print preview first, because very light fills may not show on every printer.
Is conditional formatting the same as a filter?
No. A filter hides rows; conditional formatting only changes appearance. The underlying data stays in place either way.