Any large table of data with lots of numbers becomes difficult to read. As a human, you'd have to process each number and then compare it against all the other numbers to work out which ones are higher than which others. A much easier way to quickly see which cells in a table stand out is to turn it into a heat map.

Donโ€™t forget that you can easily use Displayrโ€™sย heatmap makerย to create your free heatmap!

What's a heatmap?

A heatmap is a visualization method that colors each cell in a table on a graded color scale. At either end of the color scale you have two different colors. For each intervening value on the scale you have a gradient from one end-point-color to the other. Oftentimes, these colors go from red to green via yellow, reminiscent of the colors used by meteorologists when presenting weather - red is hot/higher, thus "heat" map.

Some data in a table...

To create a heatmap you need a table of data to work with.ย  In this case I've harvested climate data from the World Bank for Sweden between 1901 and 2015.ย  That gives me a very large table with over 100 rows and 12 columns, with cells that contain the average temperature for each month. For our American audience, these temperatures are in Celsius (after all, Anders Celsius was a Swede!). A section of my table looks like this:

 

That's not easy to read at all!ย  Although I can easily tell that the temperatures at either end of the year are lower than the temperatures in the middle of the year, it's not giving me a good understanding of changes over time. I can't see what the temperaturesย lookย like easily.

Enter: Conditional Formatting

Excel can automatically color each cell in my table based on the highest and lowest value in my data.ย  To do this, select all the cells in the table, then go toย Home > Conditional Formatting > Color Scales > Red - Yellow - Green. This will instantly color all the table cells, and you'll end up with something looking like this:

heatmap excel

I get an easy overview of what months were hotter than other months - they're the ones in red. Unsurprisingly, it's the summer months that are warmer, and the winter months that are cooler.ย  July 1901 and 1914 stand out as particularly warm. December 1915 was not a month I would have liked to have been around in... Brrr!

So far so good, but this only allows me to see a part of the picture. I want to see the whole time period between 1901 and 2015. To do that, I'll change the column and row sizes so that I can fit more onto my screen.ย  First up, let's get rid of some of these decimal places: they don't add anything to my story. Select all the cells in the table, then click theย Home > Number > Decrease Decimalย button a few times, until only the whole numbers remain.

Next, select all the columns together and just double-click one of the little lines between two of them. This will auto-size the columns to the widest width required to show the contents on one row. I'm a little finicky, however, so I want all of them to be exactly the same width. Select all the columns again, right-click, and selectย Column Width. I'll set my columns to be 2.5 units wide, and will replace the month labels with a single-letter month label.ย  Here's where I'm up to:

heatmap excel

My table is a little too tall, however, to fit onto one screen.There's only one solution - I need to re-structure my table so that I can see all the periods next to each other.ย  This is quickly achieved by a little copy and pasting (select the cells, and useย ctrl+cย on your keyboard on a PC to copy, andย ctrl+vย to paste).ย  For good measure, I also want to see if the average temperature has changed over time, so I've added another column for this, using the =AVERAGE() function in Excel.ย  Finally, I've removed the grid lines to create a clean visual of my data (on theย Viewย tab in the ribbon, deselect theย Gridlinesย check-box in theย Showย section.

Here's my final heat map:

heatmap excel

There is only really one pattern that leaps out in this example - the increase in average temperature over the last couple of decades. The frequency of more reddish is higher in the average column the closer to today we get.

Addendum: Just Show me the Colors!

It's possible to hide all those numbers if you prefer to have a clean heat map. To do so, select all the cells with numbers, right-click and selectย Format Cells. On theย Numberย tab, selectย Customย and then type in ;;; (three semi-colons) into theย Typeย box. Clickย OK. The numbers will be gone, but the formatting remains. Behold!

heatmap excel

Ready to move beyond Excel? There are other ways to create visualizations that offer more advanced options and flexibility. Check out how to create a heatmap in Displayr!