What a heat map does and when to use one
A heat map in Excel uses color to show you where numbers are high, low, or in between across a table of data. Instead of reading hundreds of cells one by one, you see at a glance which regions had the most sales, which months were slowest, or which products underperformed. The color intensity — darker red for high values, lighter yellow for low ones, for example — lets patterns jump out that would take minutes to find by scanning numbers.
Heat maps work best when you have a grid of related numbers: sales by region and month, test scores across classrooms, website traffic by page and day, inventory levels across warehouses. They are less useful for lists of unrelated items or data with only a few values to compare.
Key Takeaways
- Excel's conditional formatting feature creates heat maps by applying colors based on cell values, with no formulas or special tools needed.
- You select your data range first, then choose a color scale from the conditional formatting menu — the simplest route for most spreadsheets.
- A three-color scale (red-yellow-green) works for data with a clear middle point, while a two-color scale (white-red) works better for showing intensity alone.
- You can adjust which values map to which colors, so a heat map of test scores can treat 70 as "low" instead of using the actual minimum in your data.
The fastest way: using conditional formatting with a color scale
Open your spreadsheet and select the range of cells you want to turn into a heat map. Click and drag from the top-left cell to the bottom-right cell of your data, or click the first cell, hold Shift, and click the last cell. Make sure you select only the numbers — not the row or column headers, unless you want those colored too.
Go to the Home tab in the ribbon at the top. Find the Conditional Formatting button (it looks like a small grid with bars). Click the arrow next to it and select "Color Scales." Excel will show you preset options: a three-color scale with red-yellow-green is the default, but you can also choose white-red, blue-white-red, or others. Click the one that matches what you want to show. Excel applies the colors immediately — the highest values in your range turn one color, the lowest turn another, and everything in between gets a shade in between.
That is the entire process. You now have a working heat map. If the colors do not match what you expected, it is usually because Excel is using the actual minimum and maximum values in your data to set the color range, which sometimes creates an unbalanced look.
Adjusting the color scale to match your actual thresholds
If you want a heat map where 70 means "low" even though your lowest score is 65, or where 100 is "high" even though your highest is 98, you need to set custom thresholds. Select your data range again, go to Home > Conditional Formatting, and this time click "Color Scales" and then "More Rules" at the bottom of the menu.
A dialog box opens. You will see three sections: Minimum, Midpoint (if you chose a three-color scale), and Maximum. Next to each, you can choose whether to use the actual minimum/maximum value in your data, a specific number you type in, a percentile, or a formula. Change "Minimum" from "Lowest Value" to "Number" and type 0 if you want scores below zero to be possible. Change "Maximum" to 100 if that is the highest score the test allows. Now the color scale stretches from 0 to 100, and your actual data colors itself relative to that range instead of relative to itself.
This matters most when you are comparing multiple heat maps side by side — if one spreadsheet shows sales for January and another shows February, both should use the same thresholds so the colors mean the same thing in both.
Choosing between two-color and three-color scales
A three-color scale (red-yellow-green or similar) works well when your data has a natural middle point. Temperature data, profit margins, or test scores all have a "neutral" zone in the middle. The middle color (usually yellow or white) represents average, and the two outer colors represent extremes on either side.
A two-color scale (white-red, light-dark, or blue-red) works better when you are showing intensity or magnitude alone, with no meaningful middle. Website traffic, sales volume, or customer complaints are all "more is more" — there is no neutral point. A two-color scale makes this clearer because it does not suggest that the middle is somehow balanced or normal.
To switch scales, select your data again, go to Home > Conditional Formatting > Color Scales, and pick a different preset. If you do not see the exact colors you want, click "More Rules" and you can set the color for each point manually by clicking the color box next to Minimum, Midpoint, or Maximum.
Adding data bars or icon sets for a different look
Conditional formatting has other options besides color scales. Data bars fill each cell with a colored bar proportional to its value — useful for quick visual ranking without coloring the entire cell. Icon sets add small symbols (arrows, traffic lights, stars) to cells based on their values, which can be easier to read in some contexts than solid colors.
To try data bars, select your range, go to Home > Conditional Formatting, and choose "Data Bars." Pick a color and direction. To try icon sets, select your range, go to Home > Conditional Formatting, and choose "Icon Sets." Pick a style — three arrows, three traffic lights, or others — and Excel assigns icons based on whether each value is in the top, middle, or bottom third of your range.
Data bars and icon sets are less common than color scales for heat maps, but they can be clearer when your spreadsheet will be printed in black and white or when you need to distinguish values more sharply than a gradient allows.
Removing or editing a heat map you have already created
If you want to change the colors or thresholds on a heat map you already made, select the data range again, go to Home > Conditional Formatting, and click "Manage Rules." A list of all conditional formatting rules on your sheet appears. Find the one you want to edit, click it, and click "Edit Rule." Make your changes and click OK.
To remove the heat map entirely and go back to plain cells, select the range, go to Home > Conditional Formatting, and click "Clear Rules" > "Clear Rules from Selected Cells." The colors disappear but your data stays intact.
Common mistakes and how to avoid them
The most common mistake is selecting the wrong range — including headers or blank cells that throw off the color scale. Always double-check that you selected only the cells with numbers you want to compare. If you included a header row by accident, go back and reapply the conditional formatting to just the data.
Another mistake is using a three-color scale for data that does not have a meaningful middle. If you are showing sales by region, there is no "neutral" sales level — higher is always better. A two-color scale or a data bar will communicate this more clearly than red-yellow-green, which implies that yellow is somehow balanced.
A third mistake is forgetting that the heat map updates automatically if you change the numbers in your cells. If you edit a value, the colors recalculate to match the new range. This is usually helpful, but if you are comparing two heat maps side by side and you want them to use the same color scale, you need to set custom thresholds (as described above) so the colors do not shift when one spreadsheet changes.
Frequently Asked Questions
Can I use a heat map on a pivot table?
Yes. Select the data area of the pivot table (not the row or column labels), go to Home > Conditional Formatting > Color Scales, and choose your scale. The heat map will update if you refresh the pivot table or change the filters, because the conditional formatting is tied to the cells, not the pivot structure.
What if I want different colors than the presets offer?
Go to Home > Conditional Formatting > Color Scales > More Rules. Click the color box next to Minimum, Midpoint, or Maximum, and choose any color from the palette. You can set red for high, blue for low, and yellow for middle, or any other combination you prefer.
Does a heat map work on data with text in it?
No. Conditional formatting color scales only work on numbers. If your range includes text, Excel will skip those cells and color only the numeric ones. If you need to color text cells, use the "Highlight Cell Rules" option instead, which lets you color cells based on whether they contain specific words.
Can I copy a heat map to another sheet?
Yes. Copy the cells with the heat map, paste them into the new sheet, and the conditional formatting comes with them. If the new sheet has different numbers, the colors will recalculate to match the new range unless you set custom thresholds first.
What happens to the heat map if I sort the data?
The colors stay with the cells they were applied to, so they move when you sort. This is usually what you want — if you sort by sales from high to low, the darkest colors will cluster at the top. If you want the colors to stay in place while the data moves, you would need to copy the heat map as an image instead, but that is rarely necessary.