Highlight Excel Cells With Fill Color, Stripes or Rules

Want some cells in your list, tracker or report to stand out? The quick answer: select the cells, open the paint-bucket arrow labeled Fill Color on the Home tab and pick a shade; choose No Fill from the same menu to undo it. Before you start painting, decide which situation you’re in: a few cells, once, many cells that match, striped rows, or color that must follow the data. Each needs a different tool.

Pick the kind of color you need

All of these methods set the same thing, a cell’s fill. What differs is how long the color lasts and how much work it is to keep right when the data changes.

Your situationBest toolWhat happens when data changesHow to undo
A few cells, colored onceFill Color buttonColor stays, whatever you typeNo Fill
Many cells that share a value, colored onceFind and Replace with a format, or Format PainterColor stays on the original cells onlyNo Fill
Striped rows across a listExcel table with Banded RowsStripes re-flow after sorting, filtering or adding rowsClear the table style
Color that must match the valueConditional formattingColor updates the moment the value changesClear Rules

A quick test: if you’d have to recolor the cells by hand every week, you want a rule or a table, not a manual fill.

These steps cover Excel for Microsoft 365, Excel 2024, Excel 2021, Excel 2019 and Excel 2016 on Windows. Excel for Mac and Excel for the web have the same Fill Color button on the Home tab, but keyboard sequences that start with Alt are for Windows.

Color a few cells by hand

  1. Select the cells. Drag across a range, hold Ctrl (Cmd on a Mac) to add cells that aren’t next to each other, or click a row number or column letter to select a whole row or column.
  2. On the Home tab, in the Font group, click the small arrow beside the paint bucket. On Windows, Alt, H, H opens the same palette from the keyboard.
  3. Point at a swatch to preview it on your selection, then click to apply it. The top grid is Theme Colors, the row below is Standard Colors, and Recent Colors appears once you’ve used custom shades.

The paint bucket now shows the color you just used. Click the bucket itself (not the arrow) to apply that same color to the next selection. On Windows, F4 or Ctrl + Y repeats your last action, so you can select another range and press it to apply the same fill, as long as you haven’t done anything else in between.

You can also right-click a selection: the small toolbar above the shortcut menu has its own Fill Color button. If a dark fill makes the text hard to read, change the text with Font Color (the letter A with a colored bar) right next to it.

To color the whole sheet, click the Select All triangle where the row and column headings meet, or press Ctrl + A (twice if your cursor is inside a block of data), then apply a fill. Filled cells hide the gridlines, so add Home > Borders > All Borders if you still want the grid.

Match an exact shade

Use this when a brand color or an existing report needs the exact same green every time.

  1. Select the cells and open the Fill Color arrow.
  2. Choose More Colors.
  3. On the Standard tab, pick a swatch, or open the Custom tab and enter RGB values, for example 198, 239, 206 for a soft green. Excel for Microsoft 365 also has a Hex box under the RGB fields, where you can paste a code such as #C6EFCE.
  4. Click OK. The color is applied and added to Recent Colors, which keeps your last 10 custom colors.

Patterns and two-color fills

  1. Select the cells and press Ctrl + 1 to open Format Cells. Ctrl + Shift + F opens the same dialog on its Font tab, and Microsoft’s own steps use the Font group’s dialog launcher.
  2. Open the Fill tab and choose a Background Color.
  3. For a pattern, set a Pattern Color and a Pattern Style. For a gradient, select Fill Effects and pick two colors and a shading style.
  4. Check the Sample box, then click OK.

Use patterns sparingly. Dense hatching makes numbers hard to read on screen and on paper.

Color many cells at once

Say Jordan’s project tracker has “Overdue” scattered across six columns and 300 rows. Clicking each one would take all afternoon.

Find every match and color it

  1. Select the range to search, or a single cell to search the whole sheet.
  2. Press Ctrl + H (or Home > Find & Select > Replace).
  3. Type Overdue in both Find what and Replace with.
  4. Select Options, then the Format button beside Replace with. On the Fill tab, pick a color and click OK.
  5. Check Match entire cell contents so a cell such as “Overdue (paid)” isn’t caught.
  6. Select Replace All. Excel reports how many cells changed.

This is a one-time paint job. A cell that becomes “Overdue” tomorrow stays uncolored, which is the moment to switch to a rule (see the section on letting color follow the data).

Copy a color from one cell to others

  • Format Painter: click a colored cell, then Home > Format Painter (the paintbrush), then drag over the target cells. Double-click the paintbrush to keep it on for several areas, and press Esc when you’re done. It copies all formatting (font, borders, number format and fill), never the value.
  • Paste formatting only: copy the colored cell, select the targets, then choose Home > Paste arrow > Formatting. The target values don’t change.

Stripe rows so they survive sorting

Coloring every other row by hand looks fine until someone sorts the list and the stripes end up in clumps. A table keeps them right.

  1. Click any cell in your data and press Ctrl + T.
  2. Confirm the range, check My table has headers if row 1 holds labels, and click OK.
  3. On the Table Design tab (Table on a Mac), make sure Banded Rows is checked, then pick a style from the gallery.

New rows you add inherit the stripes, and sorting or filtering re-applies them. Microsoft’s page on how to format an Excel table covers the other style options. If tables are new to you, start with how to create a table in Excel.

Let color follow the data

Conditional formatting colors a cell only while it meets a rule. A quick example: select a column of test scores, choose Home > Conditional Formatting > Highlight Cells Rules > Less Than, type 60, pick Light Red Fill with Dark Red Text and click OK. A score of 58 turns red; fix it to 62 and the red disappears.

  • Faster start: select the data and press Ctrl + Q for Quick Analysis, which offers common highlight rules in one click.
  • Heat map: Conditional Formatting > Color Scales shades a range from low to high.
  • Color formula cells: a rule using =ISFORMULA(A1) (with A1 as the top-left cell of your selection) colors every cell that holds a formula, handy before you share a model.

For full walkthroughs, see how to color cells based on value, how to change cell color based on text, how to color cells automatically by date, and the broader tour of conditional formatting in Excel.

Keep color consistent across a workbook

Theme or standard colors. Theme Colors are tied to the workbook theme. Change the set under Page Layout > Colors and every theme-colored cell changes with it. Standard and custom colors stay exactly as picked. Use theme colors when you may restyle the workbook later, and standard or custom colors when a shade must never move.

Cell styles. On Home > Cell Styles, built-in styles such as Good, Bad, Neutral and Input set fill and font together. To make your own, choose New Cell Style, give it a name, select Format and set the fill. Built-in styles follow the document theme, and Normal under Good, Bad and Neutral takes a style off. Microsoft’s cell style page covers editing and deleting styles.

No default fill. Excel has no setting that makes new cells start with a color. The workaround is to color a blank sheet the way you want, save it as an Excel Template (.xltx), and create new workbooks from it.

Use your colors to sort, filter and count

Once Jordan’s statuses are green, yellow and red, the colors can organize the sheet:

  • Filter: select Data > Filter, click the arrow in the column header, point to Filter by Color (By color on a Mac) and pick a cell color. Only those rows stay visible.
  • Sort several colors: choose Data > Sort, pick the column, set Sort On to Cell Color, choose a color under Order and pick On Top. Select Add Level for the next color. Excel has no built-in color order, so you set it each time, as Microsoft’s sorting guide notes.
  • Count: no standard worksheet function counts cells by fill color. Filter by the color and use SUBTOTAL, or follow these steps to count highlighted cells in Excel. If the color comes from a rule, counting with the rule’s own condition (for example COUNTIF for “Overdue”) is simpler.

Take color off, or find out why it won’t leave

  1. Select the cells, or click Select All for the whole sheet.
  2. Open the Fill Color arrow and choose No Fill.

If you colored them a moment ago, Ctrl + Z (Cmd + Z on a Mac) is quicker. Home > Clear > Clear Formats also removes fills, but it strips number formats, fonts and borders too, so use it only when you want a fully plain cell.

When color survives No Fill, it isn’t a manual fill:

What you seeSourceFix
Color returns or never changedConditional formatting ruleHome > Conditional Formatting > Clear Rules > Clear Rules from Selected Cells
Stripes stayTable styleClick in the table, open the style gallery on Table Design and choose Clear, or uncheck Banded Rows
Fill Color button greyed outProtected sheet or a cell still in edit modePress Enter or Esc, or choose Review > Unprotect Sheet (you may need the password)

A rule’s color always shows over a manual fill, so your new color may be applied but hidden. Home > Conditional Formatting > Manage Rules shows what’s in charge.

Make color readable and printable

  • Give each color one meaning and add a small legend, such as green for done, yellow for in progress and red for overdue.
  • Don’t rely on color alone. Keep the status word in the cell. Some readers can’t tell red from green, and screen readers don’t announce fills. Microsoft’s guidance on accessible Excel workbooks says the same, and Review > Check Accessibility can flag low-contrast text.
  • Use light tints for large areas and save strong colors for the few cells that need attention.
  • Colors don’t print? Choose Page Layout, open the Page Setup dialog launcher, go to the Sheet tab and clear Black and white and Draft quality. Also check that your printer isn’t set to grayscale. Microsoft’s background color page lists the same checks.
  • No colors on screen at all? A Windows high contrast theme can override fills. Turn it off under Settings > Accessibility > Contrast themes.

Questions people ask once the colors are in

Can I color only part of the text in a cell?

Fills cover the whole cell. You can color part of the text, though: double-click the cell, select the characters and use Font Color.

Can a formula change a cell’s color?

Not on its own. A formula such as =IF() returns a value, not a format. Put the test in a conditional formatting rule (New Rule > Use a formula to determine which cells to format), or see how to make a cell turn a color with a formula.

Do my colors survive if I save as CSV?

No. Saving as CSV drops all formatting, colors included, and keeps only the active sheet. Keep an .xlsx copy if you need the colors.

How do I copy a color rule, not just a color?

Format Painter copies conditional formatting along with everything else. For larger jobs, see how to copy conditional formatting rules.

Try it on one column first: pick the situation from the table at the top, color a few rows, then sort the sheet and check the colors still mean what you intended.