How to Create a Treemap Chart in Excel

How to Create a Treemap Chart in Excel

A few years back, I was handed a spreadsheet with hundreds of product SKUs and asked to “show which ones matter most.” A bar chart would have been a scrolling nightmare. That’s when I turned to the treemap chart, and it completely changed how I present large categorical datasets. If you’ve got a lot of categories and want to instantly show which ones are biggest, this is the chart I reach for every time.

What Is a Treemap Chart?

A treemap chart displays hierarchical data as a set of nested rectangles. The size of each rectangle corresponds to its value, and rectangles are grouped into larger colored blocks representing categories. The bigger the rectangle, the bigger the value — it’s a visual way to compare proportions across many items at once without needing dozens of individual bars.

Unlike a sunburst chart, which shows hierarchy in concentric rings, a treemap shows it through nested rectangles. I find treemaps easier to read when I’m dealing with a large number of individual items, because size differences pop out visually much faster in rectangles than in ring segments.

When Should You Use a Treemap?

I reach for treemaps when:

If you only have a handful of categories, a simple bar chart usually communicates the same information more clearly.

Required Data Structure

Your data needs at least two columns: a category (and optionally a subcategory) and a numeric value. Here’s an example layout I typically use:

CategorySubcategoryRevenue
ElectronicsPhones45000
ElectronicsLaptops38000
ElectronicsTablets12000
FurnitureChairs15000
FurnitureTables21000
FurnitureDesks9000

If you only have one level of categorization, just use a single category column plus the value column — treemaps work perfectly fine with flat data too.

Step-by-Step Instructions

Here’s how I build a treemap in Excel:

  1. Select your data range, including headers, arranged with categories first and numeric values last.
  2. Go to the Insert tab.
  3. In the Charts group, click the Insert Hierarchy Chart icon.
  4. Choose Treemap from the dropdown.
  5. Excel generates the chart immediately, grouping rectangles by category and sizing them by value.
  6. Click on the chart to bring up the Chart Design and Format ribbon tabs for further customization.

Formatting and Settings I Adjust

Once the treemap is generated, here’s what I typically clean up:

A Practical Example

Suppose I’m analyzing a retail company’s inventory across categories and subcategories. Once I plot the treemap, I can instantly see that “Electronics > Phones” occupies a massive rectangle compared to “Furniture > Desks,” which is barely visible. Without scanning a table of forty rows, a manager instantly understands where the inventory value — and risk — is concentrated. That immediate visual weight is the treemap’s biggest strength.

Common Mistakes to Avoid

Some pitfalls I’ve run into (and now watch for):

Troubleshooting Tips

If something’s not working:

Real-World Use Cases

I’ve personally built treemaps for:

In each case, the treemap let me compress a large, unwieldy dataset into a single glanceable image — something that would have taken multiple bar charts or a long table to convey otherwise.

Best Practices

Before I finalize any treemap, I run through this checklist:

Treemaps are one of the most efficient ways to turn a sprawling spreadsheet into a story anyone can understand in seconds. Once your data is clean and properly categorized, building one in Excel takes less than a minute — the real work is in the formatting choices that make it easy to read.

Exit mobile version