How to Add a Data Table with Legend Keys in Excel

Step 1 – Create a Dataset

We are going to create a dataset of a company’s total sales and the total amount of each month’s sales.

  • We will put months in column B. We will record only from January to June in our dataset.
  • Input the unit sales of each month in column C.
  • Put the total amount of sales in each month in column D.


Step 2 – Insert a Chart

  • Select the data range which you want to visualize with a graph. In our case, we will select the whole range of data B4:D10.
  • Go to the Insert tab from the ribbon.
  • In the Charts category, click on the Insert Combo Chart drop-down menu.
  • Choose the second combo chart which is the Clustered Column – Line on Secondary Axis.

Step-by-Step Procedures to Add Data Table with Legend Keys in Excel

  • This will display the combination of the bar and line chart of sales.

Read More: How to Create Pie Chart Legend with Values in Excel


Step 3 – Add a Data Table with the Legend Keys

  • If the chart is selected, the Chart Design tab will appear in the ribbon.
  • Go to the Chart Design from the ribbon.
  • From the Chart Layout category, click on the Add Chart Element drop-down menu.
  • Click on the Data Table drop-down option.
  • Select the second option which is With Legend Keys.

Step-by-Step Procedures to Add Data Table with Legend Keys in Excel

Note: You can also do this work from the Chart Element option, which will appear on the right side of the chart after clicking on the blank space of the chart.


Final Output

This is the final output of the chart after adding the data table with legend keys.

Add a Data Table with Legend Keys in Excel


How to Change the Position of the Legend in Excel

STEPS:

  • Click on any blank space on your chart.
  • The Chart Elements button will appear next to the chart’s top right corner. The button looks like a plus sign. Click on it.
  • Click on the Legend drop-down option and select your required position of the legend. We selected the Top position.

Add a Data Table with Legend Keys in Excel

  • Alternatively, you can change the position of the legend from the Format Legend window. This window will appear while selecting the chart dialog.
  • Go to the Legend Option and then select the required position of the legend.


How to Remove the Legend in Excel

STEPS:

  • Open the Chart Elements options.
  • Uncheck the Legend option.

Add a Data Table with Legend Keys in Excel

Read More: How to Create a Legend in Excel without a Chart


Related Articles


<< Go Back to Excel Charts | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!

Tags:

Sabrina Ayon
Sabrina Ayon

Sabrina Ayon, a Computer Science and Engineering graduate from United International University, has been an integral part of the ExcelDemy project for two years. She authored 150+ articles, excelling in instructing through visually engaging Excel tutorials. With a passion for teaching, Sabrina conducted sessions on Excel VBA, sharing her knowledge and insights with others. Currently holding the position of Project Manager for the ExcelDemy Visual Development Project, she oversees various aspects of the project, ensuring its smooth operation... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo