Color-Scale Heat Map

Excel Formulas › Conditional Formatting

All versionsColor scalesNo formula

A heat map shades cells along a color gradient by value — low numbers cool, high numbers hot — turning a wall of numbers into an instant visual. Excel’s built-in Color Scales do it in two clicks, no formula needed.


Quick formula: select the numbers, then:
Home → Conditional Formatting → Color Scales
Pick a 2- or 3-color scale; Excel maps the smallest value to one color, the largest to another, and everything in between along the gradient.

How it works

The same grid as a heat map — bigger numbers are “hotter.” (Here the shading shows the gradient idea.)

ABC
1RegionQ1Q2
2West9540
3East6088

The formula

This is a built-in feature, not a formula. The setup:

Select range → Conditional Formatting → Color Scales → (pick a gradient) // low = light, high = dark green

How it works

Color scales map each value onto a gradient:

  1. Select the block of numbers you want to visualize.
  2. Home → Conditional FormattingColor Scales, then choose a 2-color (min→max) or 3-color (min→mid→max) gradient.
  3. Excel finds the smallest and largest values and colors every cell on the gradient between them — automatically rescaling as the data changes.
  4. For control over the endpoints, use More Rules to set the min/mid/max by value, percentile, or number.

Related visual rules: Data Bars draw an in-cell bar proportional to the value, and Icon Sets add traffic-light or arrow icons by threshold — both live next to Color Scales under Conditional Formatting.

Try it: interactive demo

Live demo

Drag a value; watch the heat-map color shift along the gradient.

Cell shade:

Variations

Two-color scale

Simplest min→max gradient — pick a 2-color preset.

Data bars instead

In-cell proportional bars: Conditional Formatting → Data Bars.

Fixed endpoints

Use More Rules to pin min/max to specific numbers so colors stay comparable across sheets.

Pitfalls & errors

Outliers wash out the gradient. One huge value pushes everything else to the “cold” end. Set the max by percentile (e.g. 90th) instead of the actual maximum.

Color scales include text/blank cells oddly. Apply the rule only to the numeric range so blanks don’t skew the scale.

Accessibility. Color alone can be hard to read for some viewers — pair with data bars or keep the numbers visible.

Practice workbook

📊
Download the free Color-Scale Heat Map practice workbook
A numeric grid with a real 3-color heat map already applied, plus data-bar and fixed-endpoint examples and setup steps. No sign-up required.

Frequently asked questions

How do I create a heat map in Excel?
Select the numbers, then Home > Conditional Formatting > Color Scales and pick a gradient. Excel shades each cell by value, from the smallest to the largest. No formula needed.
How do I stop one big value from washing out the colors?
Use Conditional Formatting > Manage Rules > Edit, and set the maximum by percentile (like the 90th) instead of the actual maximum so outliers don't dominate the scale.
What's the difference between color scales, data bars, and icon sets?
Color scales shade by a gradient, data bars draw a proportional in-cell bar, and icon sets add symbols by threshold. All three are under Conditional Formatting.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Highlight the top N values · Highlight rows with a formula · Percentile & quartile