A treemap chart in Excel turns a flat table of categories and values into nested coloured rectangles whose area is proportional to each value, so you can see at a glance which items dominate and which are tiny. You do not need any add-in: Excel has a built-in Treemap chart type on the Insert tab, and it works from two columns of data (a category column and a numeric value column) with an optional third column for grouping into levels. The one prerequisite is that your data must be laid out cleanly in adjacent columns with no blank rows or merged cells inside the range, and your numbers must be real numbers, not text.

What You'll Need

  • Excel for Microsoft 365, Excel 2019 or later on Windows or Mac. Older versions (Excel 2016 and earlier) do not have the Treemap chart type and will only show it greyed out or missing.
  • A worksheet with at least two columns: one text column naming each category and one numeric column with a value for each category.
  • Optionally a third column for a higher grouping level, such as Region > Product Line > Item, which is what makes a treemap genuinely hierarchical.
  • Unique category names. Duplicate labels in the first level will be lumped together by Excel, which is usually not what you want.

Step-by-Step

  1. Lay out the data in one solid block. Put your column headers in the first row of the block, then the data directly underneath. A simple two-column layout is Category in column A and Value in column B. For a hierarchical treemap, use three columns left to right in order of hierarchy, for example Region, Product, Sales. Leftmost is the outermost rectangle, the next column nests inside it, and so on.
  2. Clean the range before charting. Delete blank rows and columns inside the data block, remove merged cells, and make sure every value cell is a number. A quick check: select a column of values and look at the status bar at the bottom of the window. If the Sum or Average appears, they are numbers; if only Count appears, they are text stored as numbers and the chart will plot badly or not at all.
  3. Convert text-number to numbers if needed. Select the column, then use Data > Text to Columns and click Finish on the default settings, or multiply the range by 1 using Paste Special > Multiply. Numbers saved as text are the single most common cause of a blank or broken treemap.
  4. Select the entire data block, including headers. Click the top-left cell, hold Shift, and click the bottom-right cell. Header row included is important because Excel uses it to name the series and levels.
  5. Insert the chart. Go to Insert > Charts > the Treemap icon (in the hierarchy group of chart types, next to Sunburst and Histogram). Excel plots the selected columns immediately. If the button is greyed out, your selection is not in the right shape — usually because you selected only one column or the range is empty.
  6. Check that the hierarchy is correct. Click the chart, then use Chart Design > Select Data to confirm which column is Level 1, which is Level 2, and which holds the numeric values. If Excel treats your value column as a category, use the Level and Series editing options in that dialog to swap them. Labels change slightly between versions, so look for the controls that set each series' level rather than an exact button name.
  7. Add data labels. Click the chart, then the plus button (Chart Elements) at its top-right, tick Data Labels, and use the arrow next to it to choose what each label shows: category name and value is usually the clearest combination.
  8. Fix unreadable labels. When rectangles are small, labels are dropped automatically. Right-click a label and choose Format Data Labels, then look for the option that lets labels overflow or be shortened, or simply resize the chart and widen the slice by dragging the chart border. Zooming the chart area larger is often the quickest fix on a screen.
  9. Style the rectangles. Chart Design > Change Colors applies a colour palette by series or by level, which is how you separate regions from products visually. For manual control, right-click a rectangle and choose Format Data Series to set fill and border per level; setting a thin white border on every tile makes the nesting much easier to read.
  10. Adjust the sorting. By default Excel orders tiles by value, largest first, reading from the top-left corner. If you want a different order, sort your source data before charting — sorting rows does not break the chart, and the treemap re-renders to match. To reverse the direction inside a level, use the Format Axis options for that level.
  11. Move to its own sheet if it is crowded. Right-click the chart and choose Move Chart, then pick New Sheet. A dashboard-style full page gives small rectangles room to show labels.

Common Mistakes

Using a value that is meaningless when added up. Treemap area is a share of a total, so the values must be additive — sales, revenue, headcount, hours. Percentages or ratios that already sum across categories are fine; averages and rates are not, because a category with an average of 90 does not deserve a bigger box than one with 20.

Negative or zero values. Negative numbers cannot be shown as area and Excel simply omits those rows without a warning. If your data includes returns, credits or losses, filter or convert them before charting, or switch to a bar chart where negative values are shown honestly.

Too many categories. A treemap with 60 tiny tiles is a mosaic, not a chart. Group the long tail into an "Other" row (computed with a formula summing the small items) and keep the visible tiles to roughly 10–20 per level.

Duplicated labels in the top level. Two different products both named "Starter" in different regions will merge into one rectangle. Give each row a unique first-level label or make the hierarchy explicitly include region so each path is unique.

Blank rows or a stray total row inside the data. A grand total row becomes a giant rectangle that swamps every real category. Keep totals outside the charted range.

Expecting a colour legend per category. Treemap colours represent levels (or a colour-by-value option), not individual categories, so do not rely on colour alone to identify a single product — use data labels as well, and remember that colour-blind readers may not distinguish adjacent tiles.

Tips

Use the third column deliberately. A two-column treemap is really just a fancy bar chart; the value appears when the outer rectangles are a grouping variable and the inner tiles are the detail. Name the levels in your headers as clearly as possible, because Excel copies those header names into tooltips and label options.

Keep tile borders thin and white. Heavy borders erase the area differences your eye is trying to measure.

Format your value column as currency or with thousands separators before charting; data labels inherit the number format. If you need percentage shares instead of raw values, add a helper column with =value/SUM(range) formatted as a percentage and label with that — but keep the raw value column for the area so the boxes stay proportional.

For a status view, a conditional-format-like effect can be faked by recolouring individual tiles manually to flag problem categories, but do not use colour for both hierarchy and status in the same chart — pick one meaning.

Pivot-based treemaps refresh with the data: build the chart from a PivotTable and it updates when you refresh the pivot, which saves rebuilding when the source list changes.

Troubleshooting

The Treemap button is greyed out. Your Excel version may predate the chart type. Check File > Account for the version, or update via your Microsoft 365 subscription. On older versions the only option is to build a poor substitute from stacked bars.

The chart is blank or shows a single grey rectangle. Almost always text-stored numbers or an empty selection. Recheck the value column as described in step 2, and confirm the selection includes data rows.

Some categories are missing. Look for negatives, zeros, blanks in the label column, or rows outside the selected range. Filtering your table hides rows from the chart as well, so clear any filter.

Labels refuse to appear. If the tiles are too small, Excel suppresses labels rather than overlapping them. Enlarge the chart, move it to its own sheet, or reduce the number of categories.

The hierarchy is flat. Excel only reads levels from the columns you gave it. Add the grouping column to the selection and re-insert the chart; editing an existing flat chart's levels is fiddlier than starting again.

If that did not work, copy the data to a brand-new sheet with only headers and rows, removing all formatting and formulas, and insert the chart from clean values. Formulas that return text (for example, results concatenated with &"") are a classic hidden cause, so paste the values only via Paste Special > Values before charting.

Frequently Asked Questions

Do I need an add-in for treemaps?

No. Treemap is a native chart type in Excel 2019, Excel for Microsoft 365 and later, found under Insert > Charts.

Can a treemap show negative values?

No. Area cannot represent a negative quantity, so Excel drops those rows. Use a bar chart or separate the negatives into their own chart.

What is the difference between a treemap and a sunburst chart?

Both show hierarchy from the same data. A sunburst uses rings radiating outward from the centre; a treemap uses nested rectangles and generally uses space better when you have many categories.

Why does my treemap have one giant box?

Usually a total row inside the charted range, or one dominant category. Remove totals and consider grouping small items into an "Other" row.

Can I show percentages instead of raw values?

Yes — add a helper column dividing each value by the column total and format it as a percentage, then tick that series in the data label options. Keep the raw values as the area source.

Does it work on Excel for Mac?

Yes, on current Excel for Mac versions the Treemap chart type is available in the same Insert > Charts gallery, though a few formatting options and menu labels differ from Windows.