To add a key to an Excel chart, you add a legend. Select the chart, click the plus sign (Chart Elements) that appears at its top-right corner, and tick Legend. Excel then shows a key that maps each series colour or line to its series name. If you are on an older Excel version without the plus button, use Chart Design (or Design) > Add Chart Element > Legend instead. The legend text comes from the series names in your worksheet, so getting those right is the real work.

What You'll Need

  • Excel for Windows, Excel for Mac, or Excel for the web, with an existing chart on a worksheet.
  • Your data laid out with clear column or row headers, because those headers become the legend entries.
  • Nothing else: no add-ins or extra downloads are required.

Menu labels can differ slightly by Excel version, platform and region. The steps below are written for the desktop app; the web version has the same plus button on a selected chart.

Step-by-Step

  1. Check your series names first. Click the chart so the source data is outlined with coloured borders. The legend takes its labels from the header cells of each data column or row. If a header is blank, Excel may show something like Series1, Series2 instead of a meaningful name.
  2. Fix blank or wrong headers. Type a clear name into the header cell (for example "Revenue" or "Units sold"). The chart and legend update as soon as you press Enter. If you cannot edit the header because the data is linked elsewhere, see the note on Select Data below.
  3. Select the chart. Click once inside the chart area, not on a cell. Small handles appear around the chart border when it is selected.
  4. Open Chart Elements. Click the green plus sign at the top-right of the chart. On Mac and on some Windows versions the button looks the same; if you do not see it, go to the ribbon: Chart Design > Add Chart Element.
  5. Tick Legend. In the Chart Elements list, tick the Legend checkbox. The key appears immediately, usually at the bottom or right of the plot area.
  6. Choose a position. Hover over Legend and click the small arrow to pick Bottom, Top, Left or Right. Right is the default for most chart types and is usually the least cluttered.
  7. Rename an entry without touching the header. If you need a legend label that differs from the cell text, right-click the chart and choose Select Data. Under Legend Entries (Series), select the series and click Edit, then type the name you want in the Series name box. This changes the legend only, not the worksheet.
  8. Reorder the entries. In the same Select Data dialog, use the up and down arrows next to the series list to move a series. The legend order follows the series order.
  9. Remove an entry. In Select Data, select the series and click Remove. Warning: this removes the series from the chart, not just the legend. To hide only the key, untick Legend in Chart Elements.
  10. Format the legend. Click the legend once to select it, then use the Format pane (right-click > Format Legend) to change font, fill or border. Drag the legend box to reposition it manually if you prefer.

Common Mistakes

  • Editing the legend text directly. You cannot usually type over a legend entry. Change the header cell or use Select Data > Edit instead.
  • Leaving header cells blank. Blank headers produce generic Series1/Series2 labels that tell the reader nothing.
  • Confusing the legend with data labels. The legend is the key; data labels sit on the bars or points and show values. Add those separately from Chart Elements.
  • Removing a series to tidy the legend. That deletes the data from the chart. Untick the Legend checkbox if you only want it hidden.
  • Assuming the legend is missing when it is hidden behind the chart. Check whether the legend box is dragged off the visible chart area.

Tips

  • Keep legend entries short: two or three words read better than full sentences.
  • If every series is already labelled directly on the chart, you can leave the legend off to save space.
  • For pie charts, the legend often works better than crowded slice labels, especially with many categories.
  • Use a consistent colour scheme across charts in the same report so the key stays familiar to readers.
  • Copy a formatted chart and paste it to reuse the same legend style elsewhere.

Troubleshooting

  • The plus button is missing. Make sure the chart, not a cell, is selected. If it still does not appear, use the ribbon route: Chart Design > Add Chart Element > Legend.
  • The legend shows Series1 instead of my header. The header cell is probably blank or the chart range excludes it. Right-click the chart, choose Select Data, and check the range includes the header row or column.
  • The legend is cut off or overlaps the chart. Change its position to Right or Bottom, or drag the plot area to make room. You can also shrink the legend font in Format Legend.
  • Only some series appear in the legend. A series may be hidden. In Select Data, check the series list, and confirm the series is not filtered out of the source range.
  • Edits to the header do not update the chart. The chart may be pointing at a different range. Use Select Data to re-point the series at the correct cells.
  • If that did not work, close and reopen the workbook, then try again. As a last resort, delete the chart and insert a new one from the same range; your data is untouched.

Frequently Asked Questions

What is a key on an Excel chart called?

It is the legend. Excel's menu uses the word Legend, so search for that if you cannot find "key".

Can I change the legend text without changing my data?

Yes. Right-click the chart, choose Select Data, select the series, click Edit and type a new Series name. The worksheet stays as it is.

Why does my legend show colours but no names?

The series names are missing or blank. Add headers to the source data or set the names in the Select Data dialog.

How do I move the legend to the bottom of the chart?

Click the plus sign on the chart, hover over Legend, click the arrow and choose Bottom. Alternatively use Chart Design > Add Chart Element > Legend > Bottom.

Can I remove just one entry from the legend?

Not directly. The legend lists every plotted series, so to drop one entry you must remove that series from the chart (which removes its data) or hide the legend entirely.

Does adding a legend work the same in Excel for the web?

Largely yes. Select the chart and use the plus button or the Chart tab's Legend option. Some formatting choices are more limited in the browser version.