How to Add Color in Excel: Fill, Font & More
In this article
To put color in Excel, select the cells you want to change and use the Fill Color or Font Color button on the Home tab, or right-click and choose Format Cells for more control. You can color cell backgrounds, text, borders, and even whole rows or columns, and you can apply colors conditionally based on values. Nothing needs to be installed beyond Excel itself; the steps below work in Excel for Microsoft 365, Excel 2019, and Excel 2021 on Windows and Mac, and the same commands are available in the free Excel for the web. Menu labels can differ slightly by version, device, and region, so if you don't see an exact button name, look for the closest match on the Home tab or in the right-click menu.
What You'll Need
- A copy of Excel (desktop or web) and a workbook you can edit.
- Cells, rows, columns, or a range selected before you apply color.
- Optional: a table or range if you plan to use conditional formatting.
Step-by-Step
- Select the cells you want to color. Click a single cell, drag to highlight a range, or press Ctrl+A (Cmd+A on Mac) to select the whole sheet. To color an entire row or column, click the row number or column letter.
- Open the Home tab. The Fill Color button looks like a paint bucket and the Font Color button looks like a letter A with a color bar underneath. Both sit in the Font group on the ribbon.
- Apply a background color. Click the arrow next to the Fill Color bucket to open the color palette, then click a swatch. The selected cells immediately get that background. To remove a fill, choose No Fill from the same palette.
- Change the text color. Click the arrow next to the Font Color button (the A with a color bar) and pick a swatch. This changes only the text inside the selected cells, not the cell background.
- Use Format Cells for more control. Right-click the selection and choose Format Cells (or press Ctrl+1 / Cmd+1). On the Fill tab you can pick a background color and a pattern style; on the Font tab you can set the font color. Click OK to apply.
- Color borders. With cells selected, open the arrow next to the Borders button in the Font group, choose a line style and color from the palette, then choose which borders to draw (for example Outside Borders or All Borders).
- Copy the formatting to other cells. Select a colored cell, click the Format Painter brush on the Home tab, then drag over the cells you want to match. Press Esc when done.
- Apply conditional formatting for value-based color. Select the range, go to Home > Conditional Formatting, choose Highlight Cells Rules (for example Greater Than or Text that Contains), pick a preset format or a custom fill, and click OK. The color updates automatically when values change.
- Save the workbook. Press Ctrl+S (Cmd+S on Mac). Colors are saved with the file, so they will appear the next time you open it.
Common Mistakes
- Coloring only one cell when you meant the whole row or column. Select the row number or column letter first, or use Format Painter after coloring a sample cell.
- Confusing Fill Color with Font Color. The paint bucket changes the background; the A with a color bar changes the text.
- Assuming a color will survive a copy-paste. A normal paste carries formatting, but Paste Special > Values strips it. Use Paste Special > Formats if you only want the color.
- Expecting conditional formatting colors to be editable like manual fills. To change them, reopen Conditional Formatting > Manage Rules and edit the rule.
- Coloring cells that already have a table style applied. Table styles can override manual fills; remove the table style or apply color after converting the table to a range if the color does not show.
Tips
- Use a consistent color code: for example, light yellow for input cells, light gray for calculated cells, and red text for errors or overdue items. This makes a sheet easier to read at a glance.
- Keep contrast high. Dark text on a light fill is easiest to read; avoid dark text on dark fills and light text on light fills.
- Use the Format Painter to copy a color scheme quickly instead of re-picking swatches for every block.
- For large sheets, conditional formatting is more reliable than manual fills because it updates when data changes.
- If you plan to print, check the color in Print Preview; some fills look much lighter on paper than on screen.
Troubleshooting
- The Fill Color button is grayed out. The sheet may be protected. Go to Review > Unprotect Sheet (you may need a password) or ask the workbook owner to allow formatting.
- Color does not appear after you click a swatch. Make sure cells are actually selected and that you clicked a color, not just opened the palette. If the workbook is in a view mode that limits editing, switch back to Normal view on the View tab.
- Conditional formatting color does not change. The rule may be limited to a specific range or may be overridden by another rule. Open Conditional Formatting > Manage Rules, check the range, and reorder or stop rules if needed.
- Colors look different on another computer or when printed. Monitor and printer settings affect color. For print jobs, check the printer's color settings and use Print Preview before printing.
- You cannot find a color you used before. Recent colors appear at the top of the palette, but they can be cleared. Note the exact swatch name or use Format Cells to see the current color.
- The file is shared and others cannot see your colors. Make sure the workbook was saved and synced. In co-authoring, wait for the sync indicator to finish before assuming the change failed.
Frequently Asked Questions
How do I color an entire row based on a cell value?
Select the whole row range, open Home > Conditional Formatting > New Rule, choose Use a formula to determine which cells to format, and enter a formula that references the key cell (for example =$A2="Overdue"). Pick a fill color and click OK.
Can I use a custom color that is not in the palette?
Yes. Open the Fill Color or Font Color palette and choose More Colors, then enter an RGB or hex value on the Custom tab. The color is added to the palette for that workbook.
Why does my fill color disappear when I sort or filter?
Manual fills move with their cells during a sort, but conditional formatting rules are tied to cell positions. If colors look wrong after sorting, check the rule ranges under Conditional Formatting > Manage Rules.
Does coloring cells work in Excel for the web?
Yes. The Home tab in Excel for the web includes Fill Color and Font Color, and conditional formatting is also available. Some advanced pattern fills from the desktop Format Cells dialog are not offered on the web.
How do I remove all colors from a sheet quickly?
Select the whole sheet with Ctrl+A (Cmd+A on Mac), open the Fill Color palette, and choose No Fill. Repeat with Font Color and choose Automatic. For conditional formatting, use Conditional Formatting > Clear Rules > Clear Rules from Entire Sheet.
Can I save a color scheme for reuse in other workbooks?
Yes. Save the workbook as a template (.xltx) with your colors applied, or copy formatted cells into a new workbook and use Format Painter. Excel does not have a one-click global color theme for individual fills beyond the document theme colors.