You shade an area in Excel by selecting the cells and applying a fill colour from the Home tab, or by using Conditional Formatting when the shading should follow a rule such as a value threshold. The manual fill is the fastest route for a fixed block of cells; Conditional Formatting is the right choice when the shading needs to update itself as data changes. Both work in Excel for Microsoft 365, Excel 2021 and 2019, and in Excel for the web, though menu labels can differ slightly by version, device and region.

What You'll Need

  • Excel on desktop (Windows or Mac) or Excel for the web — the steps below cover desktop first, with notes where the web version differs.
  • A workbook with data or a blank sheet to practise on.
  • For the rule-based method, at least one column of numbers or dates to test against.

Step-by-Step

Method 1: Fill a fixed block of cells

  1. Open your workbook and click the first cell of the area you want to shade.
  2. Hold Shift and click the last cell, or drag across the range. The Name Box at the top left shows the address, for example A1:D20, so you can confirm you have the right block.
  3. Go to the Home tab and find the Fill Color button in the Font group — it looks like a tipped paint bucket.
  4. Click the small arrow beside the paint bucket to open the colour palette.
  5. Pick a colour from the Theme Colors or Standard Colors row. The shading applies the moment you click.
  6. To remove it, select the same cells and choose No Fill from the same palette.

If you want the shading to cover rows that grow later, convert the range to a table first: select the cells, press Ctrl+T (Cmd+T on Mac), confirm the range has headers, and pick a table style. Table styles band rows automatically, and new rows typed directly beneath the table inherit the shading. To shade only alternating rows without a table, use the same Fill Color route but select every other row with Ctrl+click before applying the colour.

Method 2: Shade cells that meet a condition

  1. Select the range you want the rule to watch — for example the values in column B, not the whole sheet.
  2. On the Home tab, click Conditional Formatting in the Styles group.
  3. Point to Highlight Cells Rules and choose the rule type that fits, such as Greater Than, Less Than, Between or Text that Contains.
  4. Type the threshold in the left box and choose a preset format from the right dropdown, such as Light Red Fill with Dark Red Text. Pick Custom Format if you want a specific fill colour.
  5. Click OK. The rule applies immediately and re-evaluates whenever the cell values change.

For a rule that is not covered by the presets, choose Conditional Formatting > New Rule > Use a formula to determine which cells to format. Write a formula that returns TRUE for the cells you want shaded, starting with an equals sign and referring to the top-left cell of the selection with relative references — for example =$B2>100 shades the whole row when column B exceeds 100. The dollar sign locks the column so the rule reads the same column for every row.

Method 3: Shade a chart plot area

  1. Click once inside the chart to select it.
  2. On the Format tab (or Chart Design > Format), open the Chart Elements dropdown at the far left and choose Plot Area or Chart Area.
  3. Click Format Selection, then open the Fill section in the task pane and choose Solid fill.
  4. Pick a colour and adjust Transparency so gridlines and data remain readable.

Common Mistakes

  • Shading the whole column instead of the used range. Clicking the column letter applies fill to over a million cells, which bloats the file and can slow recalculation. Select only the rows you need.
  • Confusing fill with font colour. The paint bucket changes the background; the letter A with a colour bar changes the text. Using the wrong one leaves the cell looking unshaded.
  • Typing values over a Conditional Formatting range and expecting the colour to stay. The rule re-evaluates, so a cell that no longer meets the condition loses its shading. That is correct behaviour, not a fault.
  • Copying a formatted cell and pasting everything. A normal paste carries the fill with it. Use Paste Special > Values if you only want the content.
  • Forgetting that print settings ignore some fills. Draft quality printing can drop background colours. Check File > Print preview before relying on shading in a printed report.

Tips

  • Keep shading light. Pale fills behind black text stay readable on screen and in print; saturated colours force you to change the font colour too.
  • Use the Format Painter (Home tab, paintbrush icon) to copy a fill from one cell to many without reopening the palette.
  • Name your ranges (Formulas > Define Name) so Conditional Formatting rules are easier to read and edit later.
  • Manage overlapping rules from Conditional Formatting > Manage Rules. Rules higher in the list win, and the Stop If True checkbox prevents lower rules from applying.
  • Stick to one or two fill colours per sheet. Shading loses its meaning when everything is a different colour.

Troubleshooting

The fill will not apply. Check whether the sheet is protected. Go to Review > Unprotect Sheet, and if a password is required, ask whoever set it. A shared workbook can also block formatting changes.

Conditional Formatting does nothing. Confirm the selected range matches the rule's formula — a rule written for B2:B100 will not shade A2:A100. Also check Manage Rules for a conflicting rule above it, and make sure the formula returns TRUE rather than a number or text.

The shading disappeared after a paste. Pasting values over formatted cells can strip the rule if the source range carried its own formatting. Reapply the rule, or paste with Keep Source Formatting deliberately.

Colours look different on another computer. Fill colours render per the display and printer profile. For documents that must match exactly, use theme colours rather than standard colours, and test a print preview on the target machine.

The file has become slow. Whole-column Conditional Formatting rules are a common cause. Shrink each rule to the used range and delete rules you no longer need from Manage Rules.

Frequently Asked Questions

Can I shade cells without changing the cell colour?

Not with fill. The alternative is a border or a shape drawn over the cells, but neither moves with the data. Fill is the only option that stays attached to the cell.

Does shading carry over when I export to PDF?

Yes, fill colours export to PDF. Check the preview first, because very light fills can print almost white.

How do I shade every other row automatically?

Use a table style with banded rows, or a Conditional Formatting formula such as =MOD(ROW(),2)=0 applied to your range.

Can I copy shading to another sheet?

Yes. Copy the formatted cells and use Paste Special > Formats on the destination sheet, or recreate the Conditional Formatting rule there.

Why does the fill vanish when I sort?

Manual fill moves with the cells it was applied to, so sorting can scatter it. Conditional Formatting rules stay tied to the range and survive sorting intact.

Is shading available in Excel for the web?

Yes, both Fill Color and Conditional Formatting are available there. The palette and rule dialogs are slightly simplified compared with the desktop app.