To create a heat map in Excel, select your data range, go to Home > Conditional Formatting > Color Scales, and pick a two- or three-color scale. Excel colors each cell based on its value, giving you an instant visual heat map. No add-ins or formulas are required for the basic version, though you can refine it with custom rules, number formats, and chart-based alternatives.

What You'll Need

  • Excel 2010 or later (Windows or Mac). The steps are nearly identical; menu labels may differ slightly by version and region.
  • A data range with numeric values arranged in rows and columns. Text-only cells will not be colored by a color scale.
  • Optional: a header row and a clean layout (no merged cells) for best results.

Step-by-Step

  1. Prepare your data. Put your numbers in a contiguous block. For example, A1:E10 with row labels in column A and column labels in row 1. Remove blank rows and merged cells inside the range. If you have text like "N/A", replace it with a blank or a number, because color scales ignore text but can make the scale look uneven.
  2. Select the numeric cells only. Drag from the top-left number to the bottom-right number. Do not include the header row or label column unless you want them colored too (they will usually stay uncolored because they are text).
  3. Open Conditional Formatting. On the Home tab, click Conditional Formatting. In the menu, point to Color Scales.
  4. Choose a scale. Hover over a preset to preview it on your selected cells. Click one to apply. The common choice is the green-yellow-red three-color scale, where low values are green, mid values yellow, and high values red. For a single-direction heat map, choose a two-color scale such as white to red.
  5. Adjust the scale if needed. With the range still selected, go back to Conditional Formatting > Color Scales > More Rules. In the dialog, you can set the minimum, midpoint, and maximum to Lowest value, Percentile, Number, or Percent. For example, set minimum to Number 0 and maximum to Number 100 if your data is a percentage. Use Percentile when you want the colors spread evenly across your actual data rather than tied to fixed numbers.
  6. Fine-tune colors. In the same dialog, click the color dropdown for each stop and pick a color. Keep contrast readable: dark text on light fills, or use white text on dark fills. Avoid red-green only scales if color-blind viewers may read the sheet; a blue-orange scale is safer.
  7. Apply to the right range. If you add rows later, the formatting may not extend automatically. Copy a formatted cell and use Paste Special > Formats to the new cells, or reapply the rule to the expanded range.
  8. Optional: use a chart-based heat map. For a true grid heat map with axes, select your data and insert a 3D Surface chart or a Heat Map chart if your Excel version offers it under Insert > Charts. If not available, a color-scale table is the practical alternative.

Common Mistakes

  • Including headers in the selection. Text headers are ignored by color scales, but they can shift the perceived range and make the first row look odd. Select only numbers.
  • Using fixed min/max values that don't match your data. If you set a maximum of 100 but your data tops out at 60, all cells will look mid-range. Use Lowest/Highest value or Percentile instead.
  • Leaving blanks or text in the range. Blanks are treated as zero in some scale settings, which can skew colors. Clean the data first.
  • Applying the scale to the whole sheet. This colors empty cells and makes the heat map unreadable. Always limit the range.
  • Forgetting that conditional formatting is not a chart. It colors cells but does not add axes or a legend. If you need a legend, add a small manual key or use a chart type.

Tips

  • Use a three-color scale for data with a meaningful midpoint (e.g., target = 50). Use a two-color scale for simple high/low comparison.
  • Sort your rows or columns before applying the scale if you want a gradient effect; the colors will follow the sorted order.
  • To make the heat map readable in black and white printing, choose a scale that varies in lightness, not just hue.
  • You can copy the formatted range and paste it as a picture to share a static heat map without the underlying data.
  • If you need to color only the top or bottom values, use Top/Bottom Rules instead of a full color scale.

Troubleshooting

  • No colors appear: Check that the selected cells contain numbers, not text. A cell formatted as Text will be ignored. Also confirm the rule is enabled in Conditional Formatting > Manage Rules.
  • Colors look wrong or all the same: Open Manage Rules, edit the rule, and check the minimum and maximum settings. If they are fixed numbers outside your data range, switch to Lowest value and Highest value.
  • Formatting disappears after sorting or filtering: Conditional formatting usually moves with cells, but if you copy/paste values only, the formatting is lost. Reapply the rule or paste with formats.
  • The scale does not update when data changes: If you used fixed numbers, the colors will not adjust. Change the rule to use Lowest/Highest value or Percentile so it recalculates.
  • You need a legend: Excel color scales do not include a legend. Create one manually by coloring a few cells and labeling them, or use a chart with a legend.

Frequently Asked Questions

Can I create a heat map in Excel without conditional formatting?

Yes, you can use a chart type such as a 3D Surface chart or, in newer versions, a built-in Heat Map chart if available. You can also manually fill cells with colors, but that is not dynamic.

Does conditional formatting work on text values?

Color scales only apply to numbers. Text cells are left uncolored. If you need to color text categories, use Highlight Cells Rules with a text condition instead.

How do I make the heat map apply to new rows automatically?

Convert your range to an Excel Table (Insert > Table) before applying the rule. Conditional formatting in a table often expands automatically when you add rows. If not, reapply the rule to the new range.

Can I use a heat map for negative values?

Yes. Set the minimum to a negative number or use Lowest value. A three-color scale with a midpoint at zero works well: negative values one color, zero neutral, positive another.

Why does my heat map look different on another computer?

Colors can vary by display and printer. Also, if the other user has a different Excel version, the rule may render slightly differently. For critical sharing, paste as a picture.

Is there a limit to how many cells I can format?

Excel can handle large ranges, but performance may slow with thousands of formatted cells. For very large datasets, apply the scale to a summary range or use a chart instead.