To shade a box in Excel, select the cell or range, open the Fill Color menu on the Home tab, and choose a color. That adds a solid background fill behind the cell contents, which is useful for highlighting totals, marking input areas, or separating sections of a sheet. The steps below cover the desktop version of Excel for Windows and Mac; the mobile apps have a similar fill option but a more limited color picker.
What You'll Need
- Excel for Windows or Mac (the steps also work in Excel for the web, with minor menu differences).
- A workbook open with at least one cell or range you want to shade.
Step-by-Step
- Select the box you want to shade. Click a single cell, or click and drag to select a range. To shade a non-adjacent set, hold Ctrl (Windows) or Command (Mac) while clicking each cell or range.
- Go to the Home tab. The Fill Color button sits in the Font group, usually shown as a paint bucket icon with a colored bar underneath. Menu labels can differ slightly by version, device, and region.
- Click the arrow next to the Fill Color button. A palette of theme colors, standard colors, and recent colors opens.
- Pick a color. Click a swatch to apply it immediately. The selected cells now have a solid background fill. If you only click the paint bucket itself (not the arrow), Excel applies the last color you used.
- For a custom color, choose More Colors. In the dialog, use the Standard or Custom tab to pick an exact shade, then click OK. This is handy when you need a specific brand or print-friendly color.
- Remove shading if needed. Select the cells, open the Fill Color menu, and choose No Fill. This clears the background without deleting the cell contents.
- Copy the shading to other cells. Use Format Painter on the Home tab: select a shaded cell, click Format Painter, then click or drag over the cells you want to match. Alternatively, copy the cell and use Paste Special > Formats.
Common Mistakes
- Confusing fill with font color. The Font Color button (an "A" with a colored bar) changes text color, not the background. Use the paint bucket for shading.
- Shading only one cell in a merged area. If cells are merged, select the merged cell as a whole; selecting part of it can produce uneven results.
- Using very dark fills with default black text. Dark backgrounds make text hard to read. Switch the font color to white or a light shade for contrast.
- Assuming fill prints. Fill colors print only if the printer and settings support color; on a black-and-white printer, dark fills can obscure text. Test with Print Preview.
- Shading blank cells to "hide" data. Fill does not hide anything. Use white font on a white fill only if you understand the data is still there and will appear in formulas and when selected.
Tips
- Use light fills (pale yellow, light gray, soft blue) for input cells and reserve stronger colors for totals or warnings.
- Apply shading with Conditional Formatting if the color should change automatically based on cell values: Home > Conditional Formatting > Highlight Cells Rules.
- For a header row, shade the row first, then apply bold text and borders for a clean table look.
- Keep a consistent palette across the workbook so the shading carries meaning rather than decoration.
- If you plan to convert the sheet to a table (Insert > Table), the table style will override manual fills; choose a table style with banded rows instead.
Troubleshooting
- The Fill Color button is grayed out. The sheet may be protected. Go to Review > Unprotect Sheet (you will need the password if one was set). Also check that you are not editing inside a cell; press Esc first.
- The color will not change. Conditional Formatting may be overriding manual fill. Check Home > Conditional Formatting > Manage Rules and clear or adjust rules for that range.
- Only part of the range shades. Some cells may be merged or locked. Unmerge (Home > Merge & Center) or unprotect the sheet, then reselect the full range.
- The shading disappears after pasting. A normal paste can replace formats. Use Paste Special > Formats, or paste values only into a pre-shaded area.
- Colors look different on another screen or in print. Monitors and printers render colors differently. Choose standard colors for documents that will be shared or printed.
Frequently Asked Questions
How do I shade every other row in Excel?
Select your range, then use Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format, and enter a formula such as =MOD(ROW(),2)=0. Alternatively, convert the range to a table (Insert > Table) and pick a style with banded rows.
Can I shade a box with a pattern instead of a solid color?
Yes. In the Format Cells dialog (Ctrl+1 on Windows, Command+1 on Mac), open the Fill tab and choose a pattern style and color. Patterns are useful for black-and-white printing.
Does shading a cell affect formulas or sorting?
No. Fill color is formatting only; it does not change cell values, formulas, or sort order. Sorting moves the formatting with the cell contents.
How do I shade a text box rather than a cell?
Click the text box border to select it, then use Shape Format > Shape Fill and choose a color. This is separate from cell fill and applies only to drawing objects.
Why does my shading vanish when I open the file on another device?
Some older or alternative spreadsheet apps do not support all fill types, and very dark or custom colors may render differently. Save in .xlsx format and use standard colors for the widest compatibility.