How to create a heat map with conditional formatting in Excel?
Using a heat map can help you to understand data distribution and variation in a range of cells. This tutorial is going to show how to create a heat map in Excel with conditional formatting under three circumstances.
Please do as follows to create a heat map for a range of cells in Excel.
1. Select the range with the data you will set heat map for, click Home > Conditional Formatting > Color Scales > Green yellow – red color scale. See screenshot:
Then a heat map with the selected data is created as below screenshot shown.
You can see the selected data are highlighted with various colors. The green color represents larger values, the center color represents middle values, and the red color represents smaller values.
- 1. The highlight color will readjust automatically when values change.
- 2. If you want to reconfigure the highlight color or other settings, please select the range again, click Home > Conditional Formatting > Manage Rules to get into the Conditional Formatting Rules Manager dialog. Double click the existing rule or select the rule and click the Edit Rule button to open the rule.
- In the Edit Formatting Rule dialog box, modify the rule based on your needs.
Supposing you have created a Pivot Table as below screenshot shown. Now you want to create a heat map for the number data in this Pivot Table, the method is the same as above.
1. Select the number data in the Pivot Table, click Home > Conditional Formatting > Color Scales > Green yellow – red color scale.
Now the heat map is created in the Pivot Table.
In many cases, you don’t want to always display the heat map in your worksheet. You can insert a checkbox to control the heat map. When the checkbox is checked, display the heat map, and when the checkbox is unchecked, hide the heat map. Please do as follows.
1. Select the whole data range, press the Ctrl + T keys at the same time.
2. In the Create Table dialog box, click the OK button.
3. Click Developer > Insert > Checkbox (Form Control), and then draw a checkbox in worksheet.
4. Right click the checkbox and select Format Control. In the Format Control dialog box, enter a cell address into the Cell link box and then click the OK button. In this case, I link the checkbox to cell H1, so I enter H1 into the box.
5. Select the number cells you will use to create heat map, click Home > Conditional Formatting > Color Scales > More Rules. See screenshot:
6. In the New Formatting Rule dialog box, please configure as follows.
- 6.1 Select 3-Color Scale from the Format Style drop-down list;
- 6.2 Separately select Formula in the Type boxes under the Minimum, Midpoint and Maximum drop down lists;
- 6.3 Copy the below formula into the first Value box under the Minimum column;
- Copy the below formula into the second Value box under the Midpoint column;
- And copy the below formula into the third Value box under the Maximum column;
- 6.4 Specify the highlight colors as you need;
- 6.5 Click the OK button.
From now on, when checking the checkbox, the heat map will display, otherwise, it will be hidden all the time. See below demo:
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!