How to Add and Format Data Labels in an Excel Treemap

 

Consider the Sales Dataset containing Items and their corresponding Sales in USD.

To insert a Treemap chart and add data labels:

excel treemap data labels

 

Step 1 – Insert a Treemap chart

  • Go to the Insert tab >> click Insert Hierarchy Chart >> choose Treemap chart.

Insert Treemap

Read More: How to Create Hierarchy Tree from Data in Excel


 Step 2 – Add Data Labels

  • Click Chart Elements >> Check Data Labels.

Add Data Labels from Chart Elements

Data labels are added.

adding Excel treemap data labels


5 Ways to Format Data Labels in an Excel Treemap

 

1. Series Name

  • Select the chart >> click Chart Elements >> In Data Labels, choose More Data Label Options.

Working with Series Name

  • In Format Data Labels, check Series Name.

Adding Series Name

This is the output.

adding series name in excel treemap data labels


2.  Category Name

  • Select the chart >> click Chart Elements >> In Data Labels, choose More Data Label Options.

Dealing with Category Name

  • In Format Data Labels, check Category Name.

Adding category name

This is the output.

Adding category name with excel treemap data labels


3. Showing Values in the Chart

  • Go to More Data Labels Options by following the steps described previously.

Showing Value in Chart

  • In Format Data Labels, check Value.

Enabling value option

This is the output.

enabling value with excel treemap data labels

Read More: Create Treemap Chart to Show Values in Excel


4. Number Option

  • Go to D5>> enter the following expression into the Formula Bar >> use the Fill Handle tool to copy the formula into the cells below.

=C5/SUM($C$5:$C$12)

C5 cell refers to  “Blender Sales of $3,056”, whereas C5:C12 represents the “Sales” column.

Note: Use an Absolute Cell Reference by pressing F4 and change the cell formatting to percentage by pressing CTRL + SHIFT + 5.

Engaging with Number Option

  • Go to the Insert tab >> choose Treemap.

  • In Chart Elements, select More Data Labels Options.

Formatting chart

  • Check Category Name and Value >> choose Percentage.

switching on the Category Name and Value options choose the Percentage option.

This is the output.

adding number option with excel treemap data labels

Read More: How to Change Treemap Order in Excel


5. Changing the Alignment

By default, data labels will be on the left side of the chart. You can manually change this format.

Format data labels

  • Select the chart >> Chart Design >>Quick Layout >> Layout 3 [Shows the following chart element – Legend (bottom)].

Changing Chart Layout

  • In the Insert tab >> go to Text >> choose Text Box >> drag the box onto the chart.

Inserting Text Box on Chart

  • Select the box >> Shape Format >>  Shape Fill >> No Fill >> Shape Outline >> No Outline.

Changing Shape Format

  • Enter the data label: TV.
  • Select that text >> Home tab >> change the Font color >> make it Bold >> make the alignment Middle and Center.

Adding Data Labels in Excel Treemap

  • Copy the 1st Text Box by pressing CTRL+C >> paste it by pressing CTRL+V
  • Enter data labels for each portion of the chart.
  • Select all text boxes >> right-click  >> Group them.
  • If you move the chart, text boxes will also move.

Add and Format Data Labels in Excel Treemap

Note: As this is a manual process, the data labels will not be automatically updated.

How to Add Multiple Levels in to an Excel Treemap

Add multiple levels to the Treemap chart in Excel.

The dataset showcases Categorized Sales Data with Category, Item, and Sales in USD.

How to Add Multiple Levels in Excel Treemap

Steps:

  • Go to the Insert tab >> Select Treemap.

  • Select Chart Elements >> go to More Data Labels Options.

  • Check Category Name and Value.

Selecting Category Name and Value option

  • In Series Options >> select Banner.

Checking Banner option

This is the output.

excel multiple level treemap data labels


Practice Section

Practice here.

Practice Section excel treemap data labels


Download Practice Workbook


<< Go Back to Treemap Chart Excel | Excel Charts | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Eshrak Kader
Eshrak Kader

Eshrak Kader is a dedicated professional with a BSc. Degree in Naval Architecture and Marine Engineering from Bangladesh University of Engineering and Technology. He boasts a rich background in Microsoft Office Suite, and over the past year, he has authored over 120 insightful articles for the ExcelDemy. Currently, Eshrak leads a team of 5 in the ExcelDemy Video project and enjoys problem-solving and making videos on Excel. Eshrak’s passion for continuous learning underscores his commitment to excellence in... Read Full Bio

2 Comments
  1. Hi,

    Good Tutorial as of now in net

    Label Alignment you missed, We cant align to right or middle option is greyed out so in tutorial we need to highlight the bugs too i believe

    Thanks

    • Reply Avatar photo
      Musiha Mahfuza Mukta Jun 25, 2023 at 5:20 PM

      Thank you, Pankaj for your comment. Yes, there is no built-in process in Excel, but you can manually change the alignment of data labels. I have updated the article according to your comment. You can check the process.

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo