You can build a heatmap in Excel in about two minutes using Conditional Formatting: select your data range, go to Home > Conditional Formatting > Color Scales, and pick a scale. Excel shades each cell by value, so patterns jump out immediately. There is no dedicated "heatmap chart" type in Excel, and that is fine — the conditional-formatting method is the standard, most reliable approach. A second option, a true chart object, is covered below for cases where you need one.

What You'll Need

  • Excel for Windows, Mac, or Excel for the web (the Conditional Formatting menu is in all three; exact labels can differ slightly by version and region).
  • A rectangular data range: rows and columns of numbers, with row and column headers if you want labels.
  • Clean numeric data — text values, blanks, and error values will not shade correctly.

Step-by-Step

  1. Lay out the data as a grid. Put categories down the left column and across the top row, with the values in the middle. For example, days of the week down column A, hours of the day across row 1, and activity counts in the body. A heatmap only works when every cell is a number.
  2. Select only the numeric body of the grid — not the header row or header column. Drag from the top-left value to the bottom-right value. Including headers is the most common reason a heatmap looks wrong.
  3. Open Home > Conditional Formatting > Color Scales. Hover over a scale to preview it on your data, then click to apply. The three-color scales (for example green-yellow-red) are the most readable because the middle value gets its own color.
  4. Choose the right scale direction. Red usually means high and green means low in many dashboards, but for some metrics (error rates, wait times) you want the reverse. If the scale runs the wrong way, reopen Conditional Formatting > Manage Rules, edit the rule, and tick "Reverse scale order" — or pick a different preset.
  5. Set fixed minimum, midpoint, and maximum values if you are comparing sheets. By default Excel scales to the lowest and highest number in your selection. That means two sheets with different ranges will use different colors for the same value. To fix this, edit the rule and change "Minimum", "Midpoint", and "Maximum" from Automatic to Number, then type your own bounds.
  6. Add a legend. Conditional formatting has no built-in legend. The quick fix: put three cells beside the grid, fill them manually with the low, middle, and high colors from your scale, and type the values next to them. Alternatively, apply the same color scale to a small helper column of your min, mid, and max values.
  7. Freeze the headers so labels stay visible when you scroll: select the cell just below and to the right of your headers, then go to View > Freeze Panes > Freeze Panes.
  8. Optional — build a real chart object. If you need a heatmap as a chart (for a dashboard or to resize freely), the practical route is a 3D Surface chart: select the grid, go to Insert > Charts, choose the Surface chart type, then the 3D Surface option. It is fiddly to read and hard to label, so most people stick with conditional formatting. A bubble chart or a stacked column chart with color-coded series are other chart-based alternatives, but neither is a true heatmap.
  9. Save and, if needed, print. Conditional formatting colors print by default in modern Excel, but check File > Print preview — if colors are missing, open Page Setup and confirm that black-and-white printing is off.

Common Mistakes

  • Selecting the headers along with the data. Text headers are ignored by color scales, but they can distort the range and leave the first row or column unshaded. Select only numbers.
  • Leaving numbers stored as text. Cells that look numeric but are left-aligned often will not shade. Select the column, use Data > Text to Columns and finish, or multiply by 1 in a helper column, to convert them.
  • Letting each sheet auto-scale. Two heatmaps side by side with automatic bounds are not comparable. Fix the min and max.
  • Using too many colors. A five-color rainbow scale is harder to read than a three-color one. Stick to three.
  • Forgetting blanks. Empty cells get no color and can look like a deliberate gap. Decide whether blanks mean zero or missing, and fill or flag them accordingly.

Tips

  • Use a diverging scale (for example blue-white-red) when your data has a meaningful midpoint such as zero or a target, and a sequential scale (light to dark) when it does not.
  • Sort rows or columns by average value before applying the scale so the hottest areas cluster together.
  • Keep the color scale consistent across a workbook by copying a formatted cell and using Paste Special > Formats.
  • For accessibility, avoid red-green as the only distinction; add a number format or icon set alongside the colors.
  • If you need a heatmap that updates automatically, build it on a formatted Excel Table (Insert > Table) so new rows inherit the formatting.

Troubleshooting

  • Nothing changed after applying the scale. Check that the selected cells are numbers, not text. Click a cell and look at the status bar — if it shows no sum or average, it is text.
  • Only some cells are colored. Your selection probably missed a row or column, or some cells are blank or contain errors. Clear errors first.
  • The colors look wrong or inverted. Open Conditional Formatting > Manage Rules, select the rule, click Edit Rule, and check the minimum/maximum settings and the reverse-scale option.
  • Colors disappear when you sort or paste. Conditional formatting usually follows the cells, but pasting values over formatted cells can strip it. Reapply the rule, or paste as values first and then format.
  • The heatmap does not print in color. Check Page Setup for a black-and-white setting and confirm your printer is not set to grayscale.
  • You need a legend but do not want to fake it. Apply the same color scale to a small vertical helper range containing your min, mid, and max, and label those cells.

Frequently Asked Questions

Does Excel have a built-in heatmap chart type?

No. Excel offers conditional formatting color scales, which is what most people mean by a heatmap, plus a 3D Surface chart that can approximate one. There is no chart type literally called "heatmap".

Can I make a heatmap in Excel for the web?

Yes. Conditional Formatting with color scales is available in Excel for the web. The 3D Surface chart option is more limited there, so use conditional formatting if you are working in a browser.

How do I add a legend to a heatmap?

Excel does not generate one automatically. Create a small block of cells with your minimum, midpoint, and maximum values, apply the same color scale to them, and label each cell with its value.

Why are some of my cells not shaded?

Those cells are almost certainly text, blank, or contain an error. Convert text numbers with Text to Columns, and decide how you want blanks treated before formatting.

Can I make the heatmap update automatically when data changes?

Yes, if the formatting is applied to cells that are part of an Excel Table or a range that formulas feed into. Conditional formatting recalculates whenever the cell values change.

How do I compare two heatmaps fairly?

Set fixed minimum, midpoint, and maximum values in the rule instead of leaving them on Automatic. That way the same number gets the same color on both sheets.