Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Shading On Excel: A Step-by-Step Guide

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Shading on Excel means filling cells, rows or blocks with a background colour so information is easier to scan and understand. You do it with the Fill Color button on the Home tab, the Format Cells dialog (Ctrl+1), or Conditional Formatting if you want the colour to appear automatically when a value changes. Nothing needs to be installed first: every desktop version of Excel has these tools, and Excel for the web has the essential ones too. Labels and button positions can differ slightly by version, device and region, so if something is not exactly where this guide says, look for the closest match on the Home tab.

What You'll Need

  • A workbook open in Excel for Windows, Mac or the web, with permission to edit it. If the file is read-only or someone has protected the sheet, the shading buttons will be greyed out.
  • The cells you want to shade selected. You can select anything from a single cell to an entire row or column.
  • If you plan to use Conditional Formatting, a clear rule in mind, such as "colour anything over 100 in light red" or "shade every other row."

Step-by-Step

  1. Select the cells to shade. Click and drag across a range, or click a row number to shade a whole row, or a column letter to shade a whole column. Hold Ctrl (Command on Mac) while clicking to select several separate ranges, such as a header row plus a totals row.
  2. Choose a fill colour. On the Home tab, find the Fill Color button, usually shown as a tilted paint bucket. Clicking the bucket applies the colour currently shown under it; clicking the small arrow beside the bucket opens a palette of theme colours and standard colours. Move the pointer over a swatch and Excel previews the shading on your selection before you commit.
  3. Confirm the result. Click the swatch you want and the shading appears immediately. If it was a mistake, press Ctrl+Z (Command+Z on Mac) straight away, or reopen the palette and choose No Fill to take the colour off again.
  4. Use Format Cells for finer control. With the cells selected, press Ctrl+1 (Command+1 on Mac) to open Format Cells, go to the Fill tab, pick a colour from the palette and click OK. This dialog also gives you access to more colours, gradient fills and pattern fills, which the quick palette does not show.
  5. Copy the shading to other cells with Format Painter. Click a shaded cell, click Format Painter on the Home tab (the brush icon), then drag across the cells you want to match. Double-click Format Painter if you want to paint several separate areas in a row, and press Esc when you are finished.
  6. Shade alternate rows with a table style. Select your data, go to Insert > Table, confirm the range and tick "My table has headers," then pick a banded style from the Table Design tab. Excel shades every other row automatically and keeps the pattern correct when you add or remove rows.
  7. Use Conditional Formatting for automatic shading. Select the range, go to Home > Conditional Formatting > Highlight Cells Rules and choose a rule such as Greater Than, Less Than or Duplicate Values. Enter the value and pick a fill colour in the dialog. For row banding without a table, use Conditional Formatting > New Rule > Use a formula, with a formula such as =MOD(ROW(),2)=0 applied to the whole range.
  8. Shade a header row for structure. Select the header cells and apply a darker fill with white or bold text. Keep the contrast strong enough that the text stays readable, and avoid gradients behind small text.
  9. Remove shading when it is no longer needed. Select the cells, open the Fill Color palette and choose No Fill. For Conditional Formatting, select the range and go to Home > Conditional Formatting > Clear Rules, then choose whether to clear rules from the selected cells or the entire sheet.
  10. Check the file before sharing. Print preview (Ctrl+P) shows whether the colours will print and whether they use a lot of ink. On a monochrome printer, subtle pastel shades can end up looking nearly identical, so test with a light grey first if the workbook is likely to be printed.

Common Mistakes

Shading by selecting rows instead of cells. Clicking the row number selects the entire row, including empty cells far to the right, which makes the sheet look striped beyond your data and can slow the file down. Select just the used range where possible.

Mixing manual fills with Conditional Formatting. A manual fill colour overrides nothing, but Conditional Formatting sits on top of manual shading, so a cell can look one colour while its manual fill is another. When a colour refuses to change, clear any Conditional Formatting rules on that range first.

Using colour as the only signal. If red means overdue and green means complete, add a text label, an icon or bold formatting as well. Colour alone is hard to read for colour-blind colleagues and disappears on a black-and-white printout.

Shading data that gets sorted or filtered. Manual fills stay with the cell, not the row, so they can look scrambled after a sort. Table styles and Conditional Formatting follow the data and stay consistent.

Choosing colours that are too dark or too bright. Strong fills make black text hard to read and dominate the screen. Keep body cells pale and save saturated colours for headers or alerts.

Tips

Use theme colours rather than the small "standard colours" row, because theme colours adjust automatically if the workbook's colour theme changes and look consistent across sheets. Keep a simple scheme: one pale colour for input cells, one for calculated cells, and a strong accent only for warnings. To shade every sheet at once, right-click a sheet tab, choose Select All Sheets, apply the fill, then right-click again and ungroup the sheets, or you will keep editing them all together. If you like a particular fill, copy a formatted cell with Ctrl+C, select the target, and use Paste Special > Formats to transfer only the shading. For dashboards, leave white gaps between shaded blocks so the eye separates sections.

Troubleshooting

The Fill Color button is greyed out. The sheet is probably protected. Go to Review > Unprotect Sheet if you know the password, or ask the file owner. A read-only file opened from email or a shared drive also disables editing; save a copy locally and reopen it.

I applied a colour but nothing changed. Check whether the selection contains merged cells, which can hide fills on all but the top-left cell. Select all the merged area and try again. If Conditional Formatting is active, it may be painting over your manual fill.

The shading vanished after sorting or pasting. Copied pastes bring the source cell's formatting unless you use Paste Special > Values. Sorting moves formatting with the cell contents, so rules built as tables or Conditional Formatting handle reordered data far better.

Colours print as grey or not at all. In Page Layout, check the print settings and make sure the workbook is set to print in colour rather than black and white. Also check the printer driver, because some drivers force grayscale regardless of the Excel setting.

The file feels slow with lots of colours. Large volumes of Conditional Formatting rules, especially whole-column rules, slow recalculation. Limit rules to the used range and delete rules you no longer need.

Frequently Asked Questions

Can I shade a cell based on another cell's value?

Yes. Select the cells you want coloured, open Conditional Formatting > New Rule > Use a formula, and write a formula that refers to the other cell, such as =$B2>100 where B is the column being tested. Use the dollar sign to lock the column so the rule applies across the width of your range.

Does shading work in Excel for the web?

Yes, the Fill Color button and Conditional Formatting are available in Excel for the web. Some options, such as pattern fills and the full Format Cells dialog, are only in the desktop apps.

How do I shade one row across the entire worksheet?

Click the row number, then apply the fill. Be aware this colours all 16,384 columns in that row, which adds weight to the file. Shading only the used range gives the same visual result with less overhead.

Can I save a colour scheme for future workbooks?

Yes, in the desktop apps you can edit the workbook's theme colours so your palette appears in the Fill Color menu on every sheet. Saving the file as a template keeps those colours for new workbooks.

Why does my conditional shading only colour the first cell?

Usually the formula uses a fixed reference without the right dollar signs, so it is not relative to the rest of the range. Check the "Applies to" box covers the whole range and adjust the anchors in the formula.

Is there a keyboard shortcut for fill colour?

There is no single default shortcut. Alt, H, H opens the Fill Color palette from the keyboard on Windows; on Mac, use the Format Cells dialog with Command+1 and the Fill tab.