A treemap in Excel turns a plain table of categories and values into nested rectangles sized by value, so you can see at a glance which items dominate and which are small. You need Excel 2016 or later on Windows, or Excel 2016 or later on Mac, plus a table of data with one text column of categories and one numeric column of values. Select that data, go to Insert > Insert Hierarchy Chart > Treemap, and Excel draws the chart for you. Note that menu labels can differ slightly by Excel version, platform and region, so if a name looks different, look for the closest match.
What You'll Need
- Excel 2016 or newer (Windows or Mac), or Microsoft 365. Treemap charts are not available in Excel 2013, Excel Online's editing view is limited, and the mobile apps can view charts but not create them.
- A worksheet with your data organised in two adjacent columns: text categories on the left, numbers on the right. Include a header row with column titles.
- Clean data: no blank cells in the category column, no merged cells in the data range, and no text or empty strings where numbers should be, unless you want those rows ignored.
- Optionally, one or two extra columns of sub-categories if you want a two-level hierarchy.
Step-by-Step
- Lay out your data in two columns. Put category names in column A and values in column B, with headers such as A1 = "Category" and B1 = "Sales". Every row needs a name and a non-negative number. Treemap ignores rows where the value is blank or zero, so fill gaps or delete those rows before you start.
- Sort your data if you want predictable ordering. Excel places rectangles in the order it reads the rows, roughly starting from the top left and working through. Sorting by value descending makes the largest blocks appear first and gives a cleaner visual. Select the range, then use Data > Sort, choose your value column and descending order.
- Select the whole range including headers. Click the top-left cell, hold Shift, and click the bottom-right cell. The range must be one contiguous block of data, and include the header row so Excel labels the series and legend correctly.
- Insert the treemap. Go to the Insert tab, find the Charts group, click the small chart-picker icon or the Hierarchy icon, and choose Treemap. On some versions the path is Insert > Insert Hierarchy Chart > Treemap. The chart appears as a floating object on the same sheet.
- Check the legend and labels. Excel adds a legend by default. If the category names are short, you can turn the legend off (click the chart, then the plus sign beside it or Chart Elements, and uncheck Legend) and switch on data labels instead. Data labels put the category name inside each rectangle, which is often easier to read.
- Reposition the sheet. Drag the chart's border to move it, or drag a corner handle to resize it. A wider, taller chart shows more labels. If the chart is small or your categories are tiny, Excel hides some labels automatically.
- Adjust label size and colour. Click a data label, then use the Home tab font size box, or right-click and choose Format Data Labels. Smaller fonts fit more labels inside narrow rectangles. Any label that still does not fit will be hidden.
- Set the chart title. Click the title box and type a descriptive title such as "Sales by Region" so the chart explains itself without needing the surrounding sheet.
- Add a second level if you have sub-categories. Insert a third column between the category and value columns, such as "Region" then "Store" then "Sales". Select all three columns and insert the treemap. Excel nests smaller rectangles inside the parent blocks, giving you a two-level view. More than two text levels are not supported by the treemap.
- Style the chart. Use the Chart Styles gallery on the Chart Design tab to pick a colour scheme from the current theme. Click a single rectangle once to select the whole series, or click twice to select one rectangle and change just that one's fill.
- Save and share. Save the workbook as .xlsx. Charts are embedded in the sheet, so anyone opening the file sees them. If you copy the chart into Word or PowerPoint, use Paste Special as a picture to guarantee it looks the same everywhere.
Common Mistakes
- Ranges that include totals. A grand total row dwarfs every real category and squashes everything else into slivers. Remove totals before charting.
- Blank or zero values. Those rows are silently dropped, so your chart looks incomplete. Fill them or delete them.
- Numbers stored as text. If values are left-aligned by default, Excel may treat them as text, and the chart can come out flat or refuse to plot. Use Data > Text to Columns or multiply the column by 1 to convert.
- Three or more text columns. Treemap supports two levels of hierarchy. Extra columns beyond two category columns and one value column will not nest as expected.
- Too many tiny categories. Dozens of categories produce blocks too small to label. Group small items into an "Other" row, or filter the data.
- Ignoring the units. A rectangle's size is meaningless without knowing what it measures. Always title the chart with the measurement and unit.
Tips
- Keep category names short. Long names wrap badly and vanish inside narrow blocks.
- Use a single colour family for a one-level treemap and let size do the talking; reserve varied colours for showing a second dimension.
- Sort by value so the eye follows a clear largest-to-smallest path.
- Add a conditional formatting colour column elsewhere in the sheet if you want to spot outliers, but remember treemap blocks colour by category, not by value band.
- For a hierarchy with many items, a Sunburst chart shows levels differently and can complement a treemap. Both are inserted from the same Hierarchy chart menu.
- Keep the underlying table as an Excel Table (Insert > Table). When you add rows later, charts based on the table expand automatically.
- Print or export: data labels that fit on screen may still be cut off at small print sizes. Test a print preview or export as PDF and check the labels.
Troubleshooting
If the Treemap option is greyed out or missing, either your selection is empty or contains only text, or your Excel version does not support it. Treemap was introduced in Excel 2016; older versions cannot render it. If the chart is blank, confirm the value column contains numbers and the category column has no merged cells.
If rectangles appear entirely the same size, your values are probably identical or all stored as text. Check the column's formatting and left-alignment. If only some labels appear, the chart is too small or too crowded: enlarge it, reduce the font size, or group small categories together.
If the chart does not update when you edit the data, click the chart to confirm its source range still covers the edited cells. When you add rows, either resize the range manually or convert the data to an Excel Table first.
Frequently Asked Questions
Which Excel versions include treemap charts?
Excel 2016 and later for Windows and Mac, plus any Microsoft 365 version. It is not available in Excel 2013 or earlier, and mobile apps can display but not create treemap charts.
Can I show more than two levels of categories?
No. Treemap supports one value column and up to two text levels. If you need deeper nesting, a Sunburst chart may suit better.
Why are some categories missing from my chart?
Rows with blank, zero or non-numeric values are skipped. Check the source range and the value formatting.
Can I change the colour of just one rectangle?
Yes. Click once to select the series, then click again on the individual rectangle and change its fill from the Format tab. Excel may treat that rectangle as a separate point, which is fine.
Does a treemap make sense for large numbers of items?
It works best for a moderate number of categories. With dozens of tiny items, group them into an "Other" category or filter the data so the labels remain readable.