Heatmap in Excel (Static, Dynamic and Geographic)

In this article, you will learn how to create Heatmap in Excel. Here, we will explain static and dynamic heat maps, we will also learn about geographic heat maps.

Heat maps are commonly used in various fields, including geography, data analysis, statistics, finance, and user experience design. Geographic heat maps are useful for understanding spatial patterns and distributions of various phenomena, such as crime rates, disease outbreaks, customer locations, or environmental factors.

Heat Map in Excel


Download Practice Workbook

You can download the practice workbook from here.


What Is Heatmap?

A heat map is a visual depiction of data that employs colors to illustrate values in a two-dimensional or geographic area. It serves as a valuable instrument for examining and presenting patterns, concentrations, and fluctuations in data. In a heat map, each data point is represented by a color that corresponds to its value. The colors typically range from cool or light shades (such as blue or green) to warm or dark shades (such as red or orange). The intensity of the color reflects the magnitude of the data value at a specific position.


How to Create Heat Map in Excel

1. Create Heat Map with Default Color Scale

  • Select the dataset >> go to the Home tab >> select Conditional Formatting.

Selecting Conditional Formatting

  • Select Color Scales >> select the color scale you like.

Selecting Color Scale

  • Finally, you will see that you have got your desired heat map.

Heat Map in Excel


2. Generate Heat Map with Custom Color Scale

  • Select dataset >> go to the Home >> select Conditional Formatting >> select Color Scales >> select More Rules.

Selecting More Rules

  • New Formatting Rule dialog box will appear.
  • Select Format all cells based on their values >> select 3-Color Scale as Format Style >>select color for Minimum and Maximum value >> select OK.

Selecting Custom Color Scale

  • Finally, you will get the heat map with your selected color scale.

Heat Map with Customized Color Scale


3. Create Heat Map Without Numbers in Excel

  • Create a heat map following the previous method >> select the dataset >> right-click on the selected cells >> select Format Cells.

Selecting Format Cells Feature

  • Format Cells dialog box will appear >> select Custom >> write the custom format >> select OK.

Selecting Custom Format

  • Finally, you will get the heat map without numbers.

Heat Map Without Numbers


4. Make a Heat Map with Square Cells

  • Insert a heat map following the previous method >> select the headers >> go to the Home tab >> select Alignment >> select Orientation >> select Rotate Text Up.

Changing Orientation

  • Select the columns of the heat map >> go to the Home tab >> select Format >> select Column Width.

Selecting Column Width

  • Change the Column width to 3 >> select OK.

Changing Column Width

  • Select the rows or the heat map >>  go to the Home tab >> select Cells group >> select Format >> select Row Height.

Selecting Row Height

  • Change the Row height to 19.5 >> select OK.

Changing Row Height

  • Finally, you will get your heta map with square cells.

Heat Map with Square Cells in Excel

Read More: How to Make a Heatmap in Excel 


How to Create a Dynamic Heat Map in Excel

1. Create Dynamic Heat Map with Pivot Table

  • Select the data from the Pivot Table >> go to the Home tab >> select Conditional Formatting >> select Color Scales >> select More Rules.

Selecting More Rules

  • Select the 3rd option from Apply Rule To >> select Format all cells based on their value.
  • Then, select 3-Color Scale >> select colors for Minimum and Maximum value >> select OK.

Making Heat Map Dynamic

  • Finally, you will get your dynamic heat map.
  • If you add new data to the pivot table it will be included in the heat map automatically.

Heat Map Using Pivot Table


2. Generate Dynamic Heat Map with Check Box

  • Go to the Developer tab >> select Insert >> select Check Box from Form Control.

Selecting Check Box

  • Click and drag your mouse cursor where you want the Check Box.

Placing Check Box

  • You can see that I have inserted the Check Box and changed the text.

Check Box for Showing Heat Map

  • Right-click on the Check Box and select Format Control.

Selecting Format Control

  • Format Control dialog box will appear >> select Control tab >> select Unchecked >> select a cell for Cell Link >> select OK.

Selecting Controls for Check Box

  • Open the Edit Formatting Rule dialog box for the dataset like the previous methods >> select format cells based on their values >> select 3-Color Scale as Format Style.
  • For Minimum select Formula as Type >> write the following formula as Value.
=IF($B$4=TRUE,MIN(C7:E18),FALSE)
  • For Midpoint select Formula as Type >> write the following formula as Value.
=IF($B$4=TRUE,AVERAGE(C7:E18),FALSE)
  • For Maximum select Formula as Type >> write the following formula as Value.
=IF($B$4=TRUE,MAX($C$7:$E$18),FALSE)
  • Select colors for Minimum, Midpoint, and Maximum >> select OK.

Using Formula for Conditional Formatting

  • Now, if you check the Check Box you will be able to see the heat map.

Heat Map with check Box

  • If you uncheck the Check Box the heat map will disappear.

Using Check Box to Control Heat Map


3. Make Dynamic Heat Map Without Numbers

  • Select the dynamic heat map with Check Box >> go to the Home tab >> select Conditional Formatting >> select New Rule.

Selecting New Rule for Heat Map

  • New Formatting Rule dialog box will appear.
  • Select Use a formula to determine which cells to format >> write the following formula.
=IF($B$4=TRUE,TRUE,FALSE)
  • Select Format.

Selecting Format for New Rule

  • Format Cells dialog box will appear >> go to Number tab >> select Custom >> then write “;;;” as format Type >> select OK.

Formatting for Cells Without Numbers

  • Select OK.

Selecting OK for New Rule

  • Finally, you will be able to see the heat map without numbers if you check the Check Box.

Dynamic Heat Map Without Numbers in Excel

  • If you uncheck the Check Box the heat map will disappear and you will get the dataset.

Unchecking Chcek Box to Get Dataset


4. Use Scroll Bar in Heat Map in Excel

  • We will use the following dataset for this example. Here, we will use the Scroll bar to show sales data for 3 years at a time.

Dataset for Heat Map with Scroll Bar

  • Go to the Developer tab >> select Insert >> select Scroll Bar from Form Control.

Inserting Scroll Bar

  • Insert the Scroll Bar at your desired position.

Scroll Bar for Showing Heat Map

  • Right-click on the Scroll Bar >> select Format Control.

Selecting Format Control for Scroll Bar

  • In the Format Control dialog box, go to the Control tab.
  • Select Minimum value, Maximum value, Incremental change, Page change >> select a cell for Cell link >> select OK.

Format Control Dialog Box for Scroll Bar

  • Select the first cell of the heat map >> write the following formula.
=INDEX(Dataset_2!$C$5:$G$17,ROWS($C$5:C5),'Using Scroll Bar'!$F$6+COLUMNS(Dataset_2!$C$5:C5)-1)
  • Press Enter >> drag the Fill Handle to the right to copy the formula.

Entering Formula for Heat Map

  • Then right-click and drag the Fill Handle down to copy the formula to the other cells.

Dragging Fill handle to Copy Formula

  • Select Fill without Formatting.

Copying Without Formatting

  • Finally, we have got the data from the dataset.

Data for Heat Map 

  • Now, insert a heat map following the previous methods.

Heat Map with Scroll Bar in Excel

  • Now you can get a heat map for different years by simply clicking the scroll bar.

Using Scroll Bar to Change Heat Map


How to Create Geographic Heat Map in Excel

  • Select the dataset >> go to the Insert tab >> select Maps >> select Filled Map.

Selecting Maps

  • Finally, we have inserted the geographic heat map and changed the color.

Inserting Geographic Heat Map in Excel

Read More: How to Make Geographic Heat Map in Excel


Frequently Asked Questions

1. What is a heatmap used for?

A heat map is used for different types of data analysis, statistics, finance, and user experience design.

2. Is heatmap in Excel a chart?

A heat map is a two-dimensional chart where values are shown as color for better visualization.

3. Is heatmap in Excel used for numerical data?

A heat map shows the relationships between different values. It accepts only numerical values.


Heatmap in Excel: Knowledge Hub


Conclusion

In the end, we can say that this article covers how to create different types of heatmap in Excel. Here, we explained static, dynamic, and geographic heat maps. We hope this article was helpful to you. If you have any questions or queries, please let us know in the comment section below.


<< Go Back to Data Visualisation in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Mashhura Jahan
Mashhura Jahan

Mashhura Jahan, BSc in Industrial and Production Engineering from Bangladesh University of Engineering and Technology, invested 1.5 years at ExcelDemy. In roles like Excel & VBA Content Developer, Excel Charts, and Dashboard course trainer, she wrote 90+ articles. She was previously part of the forum support team and a junior software analyst on the Excel Add-in project. With interests spanning Excel, VBA, Power Query, Python, Data Science, and Software Development, Mashhura brings a diverse skill set to her... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo