how to edit a legend in Excel — storytelling with data (2024)

June 10, 2022 by Mike Cisneros in Tips

One essential element of our charts and graphs rarely gets the attention it deserves: the legend.

Without a clear and thoughtfully-incorporated legend, viewers of our data communications will struggle to understand exactly what we’re presenting to them. Any additional effort an audience needs to devote to solving the mystery of “which data series is green?” or “what’s the difference between square data markers and circles?” is energy they won’t have to put towards grasping your visual’s important insights. A well-designed legend will remove that cognitive burden.

With every graph you create, plan to spend some time crafting a legend that supports and clarifies the data you’re presenting.

Almost every chart template in Excel will place a legend into a new graph by default. For bar charts, it’s usually set off to the right:

how to edit a legend in Excel — storytelling with data (1)

Did you know, however, that you can edit your legends? In fact, there are many things that you can do directly in Excel (or directly in PowerPoint) to customize this essential element of your communication.

But first, here are a couple of things you CAN’T do to your legend in Excel.

  • Reorder the elements in your legend. In some visualization tools, you can drag entries in the legend to change the way the series are sorted, but in Excel the order is determined in the data source itself by the series order.

  • Modify the text of the entries. Unlike data labels, into which you can re-type or add new text, legend entries are also fully determined by the data source. If you wanted this graph’s legend to be Title Case or ALL CAPS, you’d have to change that in the underlying worksheet.

Here are eight simple ways to customize your Excel legend.

As long as you haven’t resized your graph’s plot area (the space reserved for the data itself), you can use the “Format Legend” pane in Excel to move your legend to the top, left, bottom, or top right corner of your chart area. When you do this, your plot area will resize to make room for the relocated legend.

how to edit a legend in Excel — storytelling with data (2)

How to do it in Excel:

Click on your chart, and then click the “Format” tab in your Excel ribbon at the top of the window. From the very right of the ribbon, click “Format Pane.” Once that pane is open, click on the legend itself within your chart. In your Format Pane, the options will then look something like this:

how to edit a legend in Excel — storytelling with data (3)

Then, set that legend position to be whichever location you want. My tendency is to put the legend at the top, because of people’s tendency to scan any new visual from top-to-bottom; that way, a reader will know what dataset corresponds to each color or marker type before they start to evaluate the information in the graph.

Excel prefers not to have the legend and the plot area use the same physical space…but if you want them to overlap each other, you can make that happen.

How to do it in Excel:

That bottom option in the Format Legend pane above—the one that reads “Show the legend without overlapping the c…”—is the key item here.

If that box is checked, the legend will not overlap the plot area at all. By unchecking it, the legend will then float on top of the plot area (and any data series that happen to be there).

You’re not limited just to the options Excel’s Format Pane provides by default. You can actually put your legend anywhere you want in your chart area. For instance, I put mine slightly closer to the bars in this example:

how to edit a legend in Excel — storytelling with data (5)

How to do it in Excel:

If you click on your legend, you’ll see it highlighted with squares at each corner and at the midpoint of each line.

how to edit a legend in Excel — storytelling with data (6)

Once the legend is highlighted like this, click and hold your cursor down in the middle of the outlined legend (make sure your cursor looks like a plus sign with arrows on the ends—that means you’ll be able to move the legend without distorting it). Then, drag-and-drop it anywhere you want in your chart area.

99 times out of 100, you won’t need to do this. Decorative effects such as these primarily serve only to clutter up a visual. However, since it’s impossible to predict every possible scenario in which you’ll be creating a chart, there may be a time when you’ll want to visually set off your legend from surrounding elements. In that unlikely event, it’s worth knowing that Excel offers you the ability to add fills, borders, and more to your legend.

I made mine super pretty! Look at my beautiful shaded, outlined, and glowing legend:

how to edit a legend in Excel — storytelling with data (7)

How to do it in Excel:

To reiterate: I am not encouraging you to bling out your legends on a regular basis. But if for some reason you find it’s necessary to do so…you can click on the legend in your graph, and then change the Fill, Stroke, and other options from the Format Pane:

how to edit a legend in Excel — storytelling with data (8)

Please apply this knowledge with the utmost restraint. With great power comes great responsibility.

You can make your legend taller, wider or both. At the same time, you can increase or decrease the font size for your legend without changing the font size of the rest of the graph.

how to edit a legend in Excel — storytelling with data (9)

How to do it in Excel:

To resize the dimensions of the legend, highlight it so that you get this outline again:

how to edit a legend in Excel — storytelling with data (11)

Then, click on any one of the squares (they’re called “handles”) to make the legend larger in that direction. The corner handles let you change width and height at the same time; the handles in the middle of straight lines only let you change one or the other.

Resizing the fonts in the legend is pretty straightforward: you click on your legend, then click the “Home” tab in your Excel ribbon, and change the font size, family, weight, or anything else you want just the way you’d change any other text.

It’s not surprising that when you change the color of a data series in your chart, your legend updates to show the correct new color. What’s less well-known is that you can do this operation in reverse as well. For instance, I used the legend to reset my “Fruit smoothie” color to red.

how to edit a legend in Excel — storytelling with data (12)

How to do it in Excel:

Click once on the legend (to get the “handles” to show up around the whole thing), and then click a second time on one specific item in the legend itself. I clicked on “Fruit smoothie,” and it looked like this:

how to edit a legend in Excel — storytelling with data (13)

Then, I changed the fill color of that item to red in the Format Pane, which had changed to show the header “Format Legend Entry:”

how to edit a legend in Excel — storytelling with data (14)

That’s a handy thing to remember: “Format Legend” refers to everything in the entire legend, but “Format Legend Entry” refers only to the item in the legend that describes a particular data series.

This would be favorable when you’re doing some creative Excel brute-forcing—perhaps there are some series you need on the back end but don’t want displayed in the legend itself. You can actively delete entries from your legend directly, without removing the data from the chart itself. As you can see here, “Flavored milk” is gone from the legend, but the data still persists in the view.

how to edit a legend in Excel — storytelling with data (15)

How to do it in Excel:

Click once in the legend and then click a second time on the specific legend entry you’d like to remove, and then just press the “Delete” key.

This, of all the techniques we’ve covered here, is my preferred option. Although you can use Excel settings and menus to create quick-and-dirty legends, and even customize them somewhat, your communications will benefit from a bit more thoughtfulness and polish. Either delete or hide the Excel legend, and instead add some text in useful places.

You could incorporate your legend as a subheader, so your readers see it right away and know which data series goes with which color.

how to edit a legend in Excel — storytelling with data (16)

How to do it in Excel:

Click on your graph, and then in your Excel ribbon, select the “Format” tab next to the “Chart Design” tab. Towards the left hand side of your ribbon, click on the icon of a text box. That will place a blank text box in your Chart Area, which you can move, edit, and format just like a regular text box.

how to edit a legend in Excel — storytelling with data (17)

Type out the names of your data series, format them as you see fit, and place the subheader you’ve created just below the title of your graph.

Or, you could directly label the first instance of each of your data series, either at the ends of the bars or inside the base of them:

how to edit a legend in Excel — storytelling with data (18)

how to edit a legend in Excel — storytelling with data (19)

How to do it in Excel:

You can use the same technique for this as for adding a subheader, or you could use Excel’s ability to add data labels by interacting with the bars themselves. Either of these approaches also would work for line graphs, or most any other chart type you’d use on a regular basis.

Whichever approach you choose, let your decision be based on what will best serve your audience, rather than on what your graphing tool offers you as a default setting.

More Excel how-to’s:

  • For better bar charts, adjust the gap width

  • To emphasize a specific point, add data labels

  • To depict a range of values, add a shaded band

  • To create a frame of reference, embed a vertical line

  • To show a distribution of data, create a dotplot

  • For cleaner alignment, put graph elements directly in cells

  • To have more control over data label formatting, embed labels into your graphs

  • To make a stellar line graph, add thoughtful design elements (available to premium subscribers)

how to edit a legend in Excel — storytelling with data (2024)

FAQs

How to edit a legend in Excel — storytelling with data? ›

Select your chart and on the Chart Design tab, choose Select Data. Choose on the legend name you want to change in the Select Data Source dialog box, and select Edit. Note: You can update Legend Entries and Axis Label names from this view, and multiple Edit options might be available.

How do I edit my legend in Excel? ›

Select your chart and on the Chart Design tab, choose Select Data. Choose on the legend name you want to change in the Select Data Source dialog box, and select Edit. Note: You can update Legend Entries and Axis Label names from this view, and multiple Edit options might be available.

How to change order of legend in Excel without changing series order? ›

Step 1: To reorder the bars, click on the chart and select Chart Tools. Under the Data section, click Select Data. Step 2: In the Select Data Source pop up, under the Legend Entries section, select the item to be reallocated and, using the up or down arrow on the top right, reposition the items in the desired order.

How do you Format the legend key in Excel? ›

In Excel, legend keys are linked to the data in the plot area, so changing the color of a legend key will also change the color of the data in the plot area. You can right-click or tap-and-hold on a legend key, and choose Format Legend, to change the color, pattern, or image used to represent the data.

How do I change data labels in Excel? ›

To format data labels, select your chart, and then in the Chart Design tab, click Add Chart Element > Data Labels > More Data Label Options. Click Label Options and under Label Contains, pick the options you want. To make data labels easier to read, you can move them inside the data points or even outside of the chart.

How do I edit text in a chart in Excel? ›

In the worksheet, click the cell that contains the title or data label text that you want to change. Edit the existing contents, or type the new text or value, and then press ENTER.

What is a legend in Excel? ›

What is a legend in Excel? A legend in Excel matches data within a table or chart with what it represents, which can help prevent confusion when readers analyze a chart or graph. You can use a legend to show the same data differently, or it can clarify what the various axes, colors or labels on a chart mean.

How to change legend marker shape in Excel? ›

Replies (3) 
  1. Click the Graph.
  2. Click Format under the Chart Tools.
  3. In the Insert Shapes panel, select your desired shape.
  4. Draw your shape and drag it beside the legend.
  5. Copy the shape and paste it, and then drag it again beside the legend.
  6. If you want to change the color, click on the shape then click Shape fill.
Jan 23, 2019

How do I fix the legend order in Excel? ›

Under Chart Tools, on the Design tab, in the Data group, click Select Data. In the Select Data Source dialog box, in the Legend Entries (Series) box, click the data series that you want to change the order of. Click the Move Up or Move Down arrows to move the data series to the position that you want.

Can you copy just the legend in Excel? ›

While it is not possible to copy an entire legend object and paste it onto a graph, it is possible to copy and paste just the text portion of the legend. Double-click to edit the legend, select a portion (or all) of the text, and copy to the clipboard Then go to the second graph (or stay on the same one), and paste.

How do I change the legend orientation in Excel? ›

At least not in the same manner as you can rotate Shapes. However, if you right-click the Legend, choose the Format Legend command & select the Placement category you'll find a number of positioning options to pick from. The Legend will automatically reorient based on your choice.

How do I edit the series name in an Excel graph? ›

Right-click your chart, and then choose Select Data. In the Legend Entries (Series) box, click the series you want to change. Click Edit, make your changes, and click OK.

How do I open a legend in Excel? ›

Show or hide a chart legend or data table
  1. Select a chart and then select the plus sign to the top right.
  2. Point to Legend and select the arrow next to it.
  3. Choose where you want the legend to appear in your chart.

How do I edit axis labels in Excel? ›

Right-click the category labels you want to change, and click Select Data. In the Horizontal (Category) Axis Labels box, click Edit. In the Axis label range box, enter the labels you want to use, separated by commas. For example, type Quarter 1,Quarter 2,Quarter 3,Quarter 4.

How to change axis values in Excel? ›

With the axis selected, right-click. This prompts a drop-down menu with options to edit and format your chart. Scroll to the tool labeled "Select Data" and click on it. This opens a dialog box labeled "Select Data Source" which you can use to edit and change the data that appears along the axis.

Top Articles
Simple steps to get back money Lost to Forex Scam - Fraud Reports Online
7 Household Expenses You're Probably Wasting Your Money On
12 Rue Gotlib 21St Arrondissem*nt
Activities and Experiments to Explore Photosynthesis in the Classroom - Project Learning Tree
Mail Healthcare Uiowa
Bbc 5Live Schedule
Declan Mining Co Coupon
Santa Clara Valley Medical Center Medical Records
Little Rock Arkansas Craigslist
Hartford Healthcare Employee Tools
Turning the System On or Off
Binghamton Ny Cars Craigslist
Drago Funeral Home & Cremation Services Obituaries
Nba Rotogrinders Starting Lineups
Cinebarre Drink Menu
Ups Drop Off Newton Ks
Somewhere In Queens Showtimes Near The Maple Theater
Canvasdiscount Black Friday Deals
If you have a Keurig, then try these hot cocoa options
Red8 Data Entry Job
Sister Souljah Net Worth
Shelby Star Jail Log
Vivification Harry Potter
Generator Supercenter Heartland
1964 Impala For Sale Craigslist
Planned re-opening of Interchange welcomed - but questions still remain
Kempsville Recreation Center Pool Schedule
Street Fighter 6 Nexus
140000 Kilometers To Miles
P3P Orthrus With Dodge Slash
Steven Batash Md Pc Photos
Old Peterbilt For Sale Craigslist
Chris Provost Daughter Addie
Craigslist Lakeside Az
Www Craigslist Com Brooklyn
2700 Yen To Usd
Bones And All Showtimes Near Johnstown Movieplex
The best bagels in NYC, according to a New Yorker
The Nikki Catsouras death - HERE the incredible photos | Horror Galore
Interminable Rooms
Craigslist Mendocino
Tropical Smoothie Address
A rough Sunday for some of the NFL's best teams in 2023 led to the three biggest upsets: Analysis
Gander Mountain Mastercard Login
Craigslist Sparta Nj
Underground Weather Tropical
Ihop Deliver
Msatlantathickdream
Sml Wikia
Southwind Village, Southend Village, Southwood Village, Supervision Of Alcohol Sales In Church And Village Halls
Nkey rollover - Hitta bästa priset på Prisjakt
Itsleaa
Latest Posts
Article information

Author: Rueben Jacobs

Last Updated:

Views: 6405

Rating: 4.7 / 5 (57 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Rueben Jacobs

Birthday: 1999-03-14

Address: 951 Caterina Walk, Schambergerside, CA 67667-0896

Phone: +6881806848632

Job: Internal Education Planner

Hobby: Candle making, Cabaret, Poi, Gambling, Rock climbing, Wood carving, Computer programming

Introduction: My name is Rueben Jacobs, I am a cooperative, beautiful, kind, comfortable, glamorous, open, magnificent person who loves writing and wants to share my knowledge and understanding with you.