Yes, Excel can build a treemap with more than one level of categories. You feed the chart a table laid out as a hierarchy, place the levels in the order you want them nested, and Excel draws outer rectangles for the top level and inner rectangles for the next, sizing every box by one numeric value. The chart nests two levels by default and can nest further depending on the chart data layout, so the setup matters far more than any chart option. Labels can get crushed on small boxes, so you will also want to know how to tidy them at the end.
What You'll Need
- Excel for Microsoft 365, Excel 2019 or Excel 2021 on Windows or Mac. Excel 2016 received treemap charts through updates, so try Insert > Treemap first; if no treemap option appears, your build does not include it. Excel for the web and the mobile apps have different chart support, so treat this as a desktop job.
- A table with one row per leaf item, a column for each level of the hierarchy, and one numeric column to size the boxes.
- Clean data: no blank category cells inside the range, no subtotal rows mixed in with detail rows.
Step-by-Step
- Pick your levels before typing anything. Write down the hierarchy from broadest to narrowest, for example Region > Country > Product. Excel nests levels in the order the category columns appear in the sheet, with the leftmost column as the outer ring. Getting this order wrong is the single most common reason a chart looks scrambled.
- Build a flat table, not an outline. Every row should be one leaf item with its full path repeated. A row might read: North, Canada, Widgets, 12400. Do not leave the Region cell blank on the second row hoping Excel will treat it as part of the group above. Blank cells break the grouping, and merged cells break it completely.
- Keep the numeric column as plain numbers. Format it as a number or currency, not as text. Values of zero or below are not drawn by the chart, and negative values cannot be plotted in a treemap, so filter or fix them. Text-formatted numbers often get read as zero, which produces one giant grey block.
- Remove totals and subtotals. If your table has a Total row or per-region subtotal, delete it or move it to a separate sheet. A subtotal row becomes another sibling box and doubles the size of that group, hiding the real distribution.
- Select the data range including headers. Click the top-left cell, hold Shift and click the bottom-right cell. Include every hierarchy column and the value column, but leave out unrelated columns such as dates or notes.
- Insert the chart. Go to Insert > Treemap (the chart icon group; on the Windows ribbon it is under the hierarchy chart drop-down next to Sunburst). Menu names and icon placement vary slightly between Excel versions, so look for the hier
- Check what Excel made of your selection. Right-click the chart and choose Select Data, or use Chart Design > Select Data. Confirm the horizontal category axis is listed in your intended order and that there is only one series, holding your numeric column. If Excel treated a category column as a second series, remove it here and re-add it as a category level.
- Confirm the nesting in the Field List. With the chart selected, the pivot-style field list shows your columns as levels. Drag them so the outer level is at the top and the leaf level sits under it, then drag the value field into the Values area. The order of the boxes on the chart follows this list, not the left-to-right order in the sheet, so this is the real control for multi-level nesting.
- Turn on the labels you need. Click the chart, then use the plus button at its top-right to tick Data Labels. Right-click a label and choose Format Data Labels to switch between Category Name, Value and Value From Cells. For a multi-level treemap, show the category name at the outer level and the value at the inner level so each box stays readable.
- Decide which levels to label. In the same task pane, Label Options usually lets you include the value and the series or category name, depending on your version. If only the innermost label appears, that is normal for dense treemaps; use hover tooltips to read the rest rather than cramming every level onto the chart.
- Adjust colours so levels stay distinguishable. The chart colours by the top-level group by default, giving each region its own hue and tinting the inner boxes. If everything looks flat, check you have not applied a single manual fill to the series. To recolour a whole group, click one box twice to select only that box and change its fill.
- Sort the data for a cleaner read. Treemap boxes follow the sort order of the underlying rows, largest first is usually easiest to scan. Sort the source table descending by value before charting, or sort within the chart's field list if you are using it.
- Resize and clean up. Drag the chart border to make it taller; squarer charts read better than long thin ones. Delete the legend if the labels already carry the names, and shrink the title or replace it with a text box.
Common Mistakes
- Merged cells in the hierarchy columns. Merged cells collapse the hierarchy and Excel sees one giant category. Unmerge and repeat the label on every row.
- Blanks in the middle level. A missing Country value gives that item two levels instead of three, so it lands in the wrong place. Fill every cell.
- Including the total row. The total swamps the chart and every real box shrinks to a sliver.
- Using a treemap for negative values. Refunds, credits and adjustments have no meaningful area, so they cannot be shown. Aggregate them separately or use a bar chart.
- Stacking four or five levels. Each extra level shrinks the leaf boxes. Two or three levels is the practical limit before labels become unreadable.
- Expecting a pivot chart behaviour. A treemap chart is a regular chart, so if you filter rows the chart follows the range, but it will not regroup itself the way a pivot chart refreshes. Re-select the range after structural edits.
Tips
- Add a helper column that concatenates two levels, such as Region & " – " & Product, and use that as the category if you want one combined label instead of two nested rings.
- Use Value From Cells to label boxes with a custom text column, handy when you want the label to read as a short name rather than the raw category.
- Keep the number of leaf items moderate. Hundreds of tiny boxes communicate nothing except that there are many tiny boxes.
- Set the chart's numeric format once in Format Data Labels so thousands separators appear consistently.
- Duplicate the sheet before experimenting with sort order or colour, so you can compare two layouts side by side.
Troubleshooting
The chart shows one solid block of colour. This is almost always text-formatted numbers or an all-zero value column. Select the value column, check the number format, and use Text to Columns with General format to convert it. Then re-select the range and insert the chart again.
Only one level appears. Excel is treating your other category columns as data, not levels. Open Select Data, remove the extra series, and add those columns back through the field list as categories underneath the first level.
Boxes are in the wrong order or grouped badly. The grouping follows the field order in the chart's level list, not the sheet. Drag the levels into the correct top-to-bottom order there and the chart redraws.
Labels are cut off or missing on small boxes. Excel hides labels it cannot fit. Reduce the number of labelled levels, switch off the value on the inner boxes, or enlarge the chart. Overlap is unavoidable below a certain box size.
The chart looks frozen after you edited the table. Save, then right-click the chart and choose Select Data to re-point the range. If the chart still refuses to refresh, close and reopen the workbook before considering anything more drastic.
If that did not work, rebuild the chart from a clean copy of the table with no merged cells, no totals and a freshly formatted number column. A treemap built from tidy data almost always behaves the first time.
Frequently Asked Questions
How many levels can an Excel treemap show?
Excel does not impose a hard number, but readability drops fast. Two or three levels work well; beyond that, leaf boxes become too small to label. The practical answer is to pick the two levels your audience actually needs.
Why does my treemap only show the top-level categories?
Either the inner columns were not added as category levels in the chart's field list, or they were included as extra series. Fix it in Select Data: one value series, and each hierarchy column listed as a level.
Can I use a treemap with negative or zero values?
No. The chart encodes size by area, and you cannot draw a negative area. Zero values also produce no box. Separate those rows out and chart them with a bar chart instead.
Does a treemap update automatically when I change the data?
Yes, values inside the selected range update normally. If you add new rows below the range, extend it via Select Data or convert the source to a table so the chart range grows with it.
Can I make a treemap in Excel for the web or on my phone?
Desktop Excel is the reliable place to create and fine-tune one. Support in the web and mobile versions varies by version, so check what your copy offers before relying on it for editing.
What is the difference between a treemap and a sunburst in Excel?
Both read the same hierarchical data. A treemap fills a rectangle with nested boxes and uses area to show size; a sunburst uses concentric rings, which suits showing depth more than comparing exact quantities.