What a heat map is and why you'd use one
A heat map is a visual display that uses color to show where values are high or low across a table of data. Instead of reading numbers in rows and columns, you see red for high values, blue for low values, and colors in between for everything else. Heat maps make patterns jump out instantly — you can spot which sales regions are strongest, which time periods had the most activity, or which products underperformed without scanning dozens of cells.
Heat maps work best when you have a table of related numbers that you want to compare at a glance. A spreadsheet of monthly sales by region, daily website traffic by hour, or test scores by student and subject all become clearer as heat maps. The color coding does the work your eyes would otherwise have to do.
Key Takeaways
- Heat maps use color gradients to show high and low values in a table, making patterns visible without reading individual numbers.
- Excel and Google Sheets both have built-in conditional formatting tools that create heat maps in seconds from existing data.
- You choose the color scheme (red-to-blue, green-to-red, or custom colors) and whether to base the scale on the actual data range or fixed thresholds you set.
- Free online tools like Heatmap.js or ColorBrewer let you create heat maps without installing software, though they work best with specific data formats.
Creating a heat map in Excel using conditional formatting
Excel's conditional formatting feature is the fastest way to turn a data table into a heat map. Start by selecting the range of cells containing your numbers — click the first cell, hold Shift, and click the last cell in the block you want to color. Make sure you select only the numbers, not the row or column headers.
Go to the Home tab at the top of the ribbon, then click Conditional Formatting in the Styles group. A dropdown menu appears. Click Color Scales, and Excel shows you preset options: a two-color scale (like blue-to-red), a three-color scale (like blue-yellow-red), or a custom scale you build yourself. Pick the one that matches your data story — red for bad and green for good works for sales, while blue for low and red for high works for temperature or intensity.
Excel applies the heat map instantly. The lowest value in your range gets the first color, the highest gets the last color, and everything in between gets a shade in proportion to where it falls. If you want to change the scale later — for example, to make the middle color represent zero instead of the median — right-click the colored cells, choose Conditional Formatting, then Edit Rule to adjust the thresholds.
Creating a heat map in Google Sheets
Google Sheets uses a nearly identical process. Select the range of numbers you want to color, then go to Format in the menu bar. Click Conditional Formatting, and a panel opens on the right side of the screen.
Under Format Rules, choose Color Scale from the dropdown. Google Sheets shows you the same preset options as Excel: two-color, three-color, or custom. Pick your colors and click Done. The heat map appears immediately in your spreadsheet.
Google Sheets also lets you set custom minimum and maximum values if your data has outliers that skew the color scale. For example, if one cell has a value of 10,000 and the rest are between 100 and 500, you can tell Google Sheets to treat 500 as the maximum so the smaller values still show meaningful color differences. Click the dropdown next to Min and Max to change from Percentile to Value, then enter the numbers you want.
Choosing the right color scheme for your audience
The colors you pick matter more than they seem. Red-to-green is common but problematic: about 8 percent of men and 0.5 percent of women have red-green color blindness, so they cannot tell the difference. Blue-to-red, yellow-to-red, or purple-to-orange work better for mixed audiences.
Think about what the colors mean to your viewers. In finance, red usually means loss and green means profit, so a red-to-green scale tells a story even without labels. In temperature data, blue for cold and red for hot matches intuition. In abstract data with no natural meaning, pick colors that contrast sharply so the differences are obvious.
If you are presenting to a specific audience, ask what they expect. A manufacturing team might want green for on-target and red for below-target. A research team might want a scientific color scale that works in grayscale if the document gets printed. Most spreadsheet tools let you customize the exact colors, so you can match your organization's standards or accessibility needs.
Using free online tools for heat maps
If you do not have Excel or Google Sheets, or if you need a heat map for a website or report, free tools like Heatmap.js, Plotly, or ColorBrewer can create them from raw data. These tools usually work by pasting your data into a text box or uploading a CSV file, then selecting your color scheme and downloading the result as an image or interactive chart.
Heatmap.js is straightforward: paste your data in a simple format (usually rows and columns separated by tabs or commas), pick your colors, and it generates an image you can save or embed. Plotly is more powerful and creates interactive heat maps where you can hover over cells to see exact values, though the interface is more complex. ColorBrewer is designed specifically for choosing color schemes that work for different types of data and different audiences, including people with color blindness.
The trade-off with online tools is that they often require your data in a specific format, and you may need to reformat it before uploading. If your data is already in a spreadsheet, exporting it as CSV (comma-separated values) usually works. Most tools let you download the result as a PNG image or embed it as a web chart, so you can use it in presentations or reports.
Common mistakes and how to avoid them
The most common mistake is including headers or labels in the range you select for coloring. If you select cells A1 through D12 and row 1 contains text labels, Excel and Google Sheets will try to color the text cells too, which looks wrong and can break the color scale. Always select only the numeric data, leaving headers out of the conditional formatting range.
Another mistake is using a scale that does not match your data. If your numbers range from 50 to 100 but you use a scale from 0 to 100, most of your cells will be in the high-color range and you will lose the ability to see differences. Check what the minimum and maximum values actually are, and adjust the scale to fit. In Google Sheets, you can set custom min and max values. In Excel, you can edit the rule to use percentiles instead of absolute values, which spreads the colors more evenly across your actual data.
A third mistake is making the heat map too large or too small to read. Heat maps work best when each cell is big enough to see the color clearly — if you have 100 rows and 50 columns, the cells become tiny and the color differences disappear. Consider breaking large datasets into smaller tables, using filters to show only the most relevant data, or creating multiple heat maps for different subsets.
When to use a heat map instead of other charts
Heat maps are best for comparing many values across two dimensions at once — like sales by region and month, or test scores by student and subject. If you only need to compare a few numbers, a bar chart or column chart is clearer. If you want to show how one value changes over time, a line chart works better.
Heat maps also work well when you want to show the full table of data without summarizing it. A bar chart might show the top five regions by sales, but a heat map shows all regions and all months, so you can spot seasonal patterns or regional trends that a summary would hide. The downside is that heat maps can be harder to read if the table is very large or if the color differences are subtle.
Use a heat map when your audience needs to scan a table quickly and spot outliers or patterns. Use a different chart type when you want to emphasize a single trend or compare just a few values.
Frequently Asked Questions
Can I create a heat map from data that has text mixed in with numbers?
No, conditional formatting only colors cells with numbers. If your table has text labels in some cells, select only the numeric columns before applying the heat map. You can keep the text columns visible next to the colored cells — they just will not be colored themselves.
What if I want the middle color to represent zero instead of the average?
In Excel, right-click the colored cells, choose Conditional Formatting, then Edit Rule. Change the middle value from Percentile 50 to a specific number (0 in this case). In Google Sheets, click the Format Rules panel, change the middle Min/Max dropdown from Percentile to Value, and enter 0. This makes negative numbers one color and positive numbers another, with zero as the dividing line.
Can I export a heat map from Excel or Google Sheets as an image?
Yes. In Excel, select the colored table, copy it, then paste it into an image editor or Word document — it pastes as a picture. In Google Sheets, right-click the table and choose Download, then pick PNG or PDF. Both methods preserve the colors and formatting.
What is the difference between a heat map and a pivot table?
A pivot table summarizes and reorganizes data from a larger dataset. A heat map is a visual format you apply to any table to show high and low values with color. You can create a pivot table and then apply a heat map to it, combining both tools.
Do I need to update the heat map if my data changes?
In Excel and Google Sheets, the heat map updates automatically when you change the numbers in the cells. The color scale recalculates based on the new minimum and maximum values. If you want the scale to stay fixed (so adding a new high value does not change all the colors), you need to edit the conditional formatting rule and set fixed thresholds instead of automatic ones.