What a heat map does and why you'd use one
A heat map in Excel is a visual format that colors cells based on their values — low numbers appear in cool colors like blue, middle values in neutral colors, and high numbers in warm colors like red. Excel calls this feature conditional formatting, and it lets you spot patterns, outliers, and trends in a table of numbers at a glance without reading every cell.
Heat maps work best when you have a range of related numbers — sales figures by region and month, test scores across a class, temperature readings over time, or inventory levels across locations. The color gradient does the work of comparison for you, so you can see which cells stand out without mental math.
Key Takeaways
- Select the cells containing your numbers, go to the Home tab, choose Conditional Formatting, then pick a color scale to apply the heat map instantly.
- Excel offers three built-in color scales: blue-white-red, green-white-red, and yellow-orange-red, or you can customize your own colors.
- You can set the heat map to use the minimum and maximum values in your selection, or manually set the thresholds so the colors match your business rules.
- Heat maps work on any rectangular range of numbers, including cells with formulas, and update automatically when the underlying data changes.
The fastest way: using Excel's built-in color scales
Select the range of cells you want to format. Click anywhere in your data, then drag to highlight all the cells, or click the first cell and Shift+click the last cell. If your data is in a table with headers, select only the number cells, not the header row.
Go to the Home tab on the ribbon. In the Styles group, click Conditional Formatting. A dropdown menu appears. Hover over Color Scales and you'll see three preset options: Green-White-Red, Red-White-Green, and Yellow-Orange-Red. Click the one that matches your data — for example, Green-White-Red if you want high values to be green and low values to be red. Excel applies the heat map instantly to your selected range.
The color scale uses the minimum value in your selection as the lowest color, the maximum value as the highest color, and everything in between gets a proportional shade. If your data changes, the heat map updates automatically.
Customizing the color scale to match your needs
The built-in color scales work for most situations, but you can change the colors if you need them to match your company's branding or to highlight specific thresholds. Select your data range again, go to Home > Conditional Formatting, and this time click Color Scales, then More Rules at the bottom of the submenu.
The New Formatting Rule dialog opens. Make sure Color Scale is selected in the Rule Type list. You'll see three sections: Minimum, Midpoint, and Maximum. Each has a dropdown that says "Lowest Value", "Midpoint Value", or "Highest Value" — these control which cells get which colors. Below each dropdown is a color box. Click the color box to choose a different color for that threshold.
For example, if you want low values to be light gray, middle values to be white, and high values to be dark blue, click each color box and select from the palette. Click OK when you're done. Your custom heat map applies to the selected range.
Setting fixed thresholds instead of using min and max
By default, Excel uses the actual minimum and maximum values in your data to set the color scale. But sometimes you want the colors to represent fixed business rules — for instance, "below 50 is red, 50 to 80 is yellow, above 80 is green" — regardless of what your actual data contains.
Open the New Formatting Rule dialog again (Home > Conditional Formatting > Color Scales > More Rules). In the Minimum section, click the dropdown that says "Lowest Value" and change it to Number. Type the number you want to represent the lowest color — say, 0. Do the same for Midpoint and Maximum, entering the values that matter for your analysis.
This approach is useful when you're comparing data across multiple sheets or time periods and want the colors to mean the same thing every time. If your actual data doesn't reach the thresholds you set, some colors may not appear in the heat map, and that's fine — it just means those ranges weren't hit.
Removing or adjusting a heat map you've already created
To remove a heat map entirely, select the formatted range, go to Home > Conditional Formatting, click Clear Rules, and choose Clear Rules from Selected Cells. The colors disappear but your data stays.
To change the colors on an existing heat map without starting over, select the range again, go to Home > Conditional Formatting > Color Scales, and pick a different preset. Or go to More Rules to adjust the custom colors or thresholds. Your selection updates immediately.
Heat maps with text or mixed data types
Heat maps work only on numbers. If your range includes text, blank cells, or errors, Excel ignores those cells and applies the color scale only to the numeric cells in the selection. This is usually what you want — for example, if your table has a Name column and a Sales column, you can select both columns and the heat map will color only the Sales numbers.
If you have a cell that contains an error like #DIV/0!, Excel treats it as non-numeric and leaves it unformatted. The same goes for cells with formulas that return text. This doesn't break the heat map; it just means those cells don't participate in the color scale.
Common reasons a heat map doesn't look right
If your heat map colors seem inverted or don't match what you expected, check that you selected the correct range. A common mistake is including a header row with text — Excel will ignore the text but might calculate the min and max differently than you expect. Select only the data cells, not headers.
If the colors are too subtle to see, your data range might be very small (like 1 to 2) or very large (like 1 to 1,000,000). The color scale stretches across the full range, so small differences get tiny color shifts. In this case, using fixed thresholds (see the section above) often works better than auto-scaling.
If you applied a heat map and then added new data below it, the new cells won't be formatted. You'll need to select the expanded range and reapply the heat map, or manually extend the formatting rule to include the new rows.
Frequently Asked Questions
Can I use a heat map on a table with multiple columns of different types of data?
Yes. Select all the columns you want to include, apply the heat map, and Excel will format only the numeric columns. Text and date columns will remain unformatted. This works well if you have a table with names, regions, and sales figures — the heat map colors only the sales numbers.
Does the heat map update if I change the numbers in the cells?
Yes. The heat map recalculates automatically whenever the underlying data changes. If you're using auto-scaling (min and max), the color range adjusts to the new min and max. If you set fixed thresholds, the colors stay tied to those fixed values.
Can I apply different heat maps to different columns in the same table?
Yes. Select the first column, apply a heat map, then select the second column and apply a different heat map. Each range keeps its own formatting rule. This is useful if different columns represent different metrics with different scales — for example, percentages in one column and dollar amounts in another.
What's the difference between a color scale and other conditional formatting options?
A color scale (heat map) colors cells based on their numeric value relative to the range. Other conditional formatting options let you highlight cells that meet specific conditions — like "highlight all cells greater than 100" or "highlight cells that contain specific text." Color scales are better for seeing overall patterns; other rules are better for flagging specific cases.
Can I print a heat map, or does it only show on screen?
Heat maps print just as they appear on screen. When you print your spreadsheet, the colored cells print in color if your printer supports it, or in grayscale if it doesn't. The formatting is part of the worksheet, not a display-only feature.