How to Edit a Graph in Excel

Last updated on November 9th, 2026 at 12:49 pm

To edit a graph in Excel, click the chart once. Two extra ribbon tabs appear, Chart Design and Format, and in Excel for Windows three small buttons appear beside the chart’s top-right corner. Use Chart Design to change the data, chart type, layout and colors, use the buttons to switch titles, labels and the legend on or off, and double-click any part of the chart to fine-tune it in the Format pane. Changes show up immediately, and Ctrl + Z undoes anything you don’t like.

Applies to: Excel for Microsoft 365, Excel 2024, Excel 2021, Excel 2019 and Excel 2016 on Windows (including Windows 11 26H2), with notes for Excel for Mac and Excel for the web. Older versions such as Excel 2016 and 2019 show the two tabs under a Chart Tools heading and call the first one Design.

Where the chart editing tools are

Excel only shows chart tools while a chart is selected, so the most common reason people “can’t find” them is that a worksheet cell is selected instead. Click on a blank part of the chart (the chart area, near the edge) and you’ll see a border with sizing handles around it.

Once the chart is selected, you have four places to work:

  • Chart Design tab: Add Chart Element, Quick Layout, Change Colors, the Chart Styles gallery, Switch Row/Column, Select Data, Change Chart Type and Move Chart.
  • Format tab: fills, outlines, effects and text styling for whichever element is selected. The Current Selection group on the left has a drop-down list of every element in the chart, which helps when a small element is hard to click.
  • The three chart buttons (Windows): Chart Elements (plus sign), Chart Styles (paintbrush) and Chart Filters (funnel).
  • The Format pane: opens on the right when you double-click a chart element, or right-click it and choose Format followed by the element name (for example Format Axis).

The examples below use a small sales table: months January to June in A2:A7, Online sales in column B and Store sales in column C, plotted as a clustered column chart. Any chart works the same way.

Quick edits with the chart buttons

For everyday changes, the buttons beside the chart are the fastest route.

  1. Select the chart. The three buttons appear just outside its top-right corner.
  2. Click Chart Elements (the plus sign). A checklist opens with items such as Axes, Axis Titles, Chart Title, Data Labels, Data Table, Error Bars, Gridlines, Legend and Trendline. The exact list depends on the chart type. Check a box to add an element, or clear it to remove that element.
Selected Excel column chart showing the Chart Design tab and the Chart Elements checklist open beside the chart
Selecting this fictional sales chart reveals Chart Design and the three chart buttons: Elements (+), Styles (paintbrush), and Filters (funnel). The Elements checklist is open; checked items are visible in the chart.
  1. Use the arrow next to an item for placement. Hover over an item, such as Legend, and click the small arrow to the right of it to pick a position (Top, Bottom, Left, Right). Choose More Options to open the Format pane for that element.
  2. Click Chart Styles (the paintbrush). The Style tab shows a gallery of ready-made looks, and hovering over one previews it on your chart. The Color tab offers color palettes.
  3. Click Chart Filters (the funnel) to hide a series or category without deleting anything. See Hide data without deleting it below.

If you don’t see these buttons (Microsoft’s Excel for Mac instructions, for example, work from the ribbon instead), the same options are on the Chart Design tab: Add Chart Element matches the plus button, and the styles gallery and Change Colors match the paintbrush.

How do I add a trendline to a graph in Excel?

Select the chart, click Chart Elements (or Chart Design > Add Chart Element) and choose Trendline. If the chart has more than one series, Excel asks which series to use. Right-click the trendline and choose Format Trendline to switch between Linear, Exponential, Moving Average and other types, or to show the equation on the chart. A trendline can also be extended into future periods, one of several ways to forecast in Excel.

Edit titles, data labels and the legend

Chart title and axis titles

  1. If the chart has no title, add one with Chart Elements > Chart Title (or Chart Design > Add Chart Element > Chart Title). Axis titles are added the same way under Axis Titles.
  2. Click the title once to select it, then click again inside the text to start typing.
  3. Select the placeholder text, type your own (for example Sales by Month, January to June) and click outside the box to finish. Press Enter inside the box if you want a line break.

To make a title update itself from the sheet, click the title, click in the formula bar, type =, click the cell that holds the text and press Enter. The title is now linked to that cell, so editing the cell changes the chart. Microsoft’s page on editing titles or data labels in a chart covers this and the label options below.

Data labels

  • Add them: Chart Elements > Data Labels, then use the arrow to pick a position such as Outside End or Inside End.
  • Edit one label: click a label once to select the whole series, then click the same label again to select only that one. Click a third time to edit its text.
  • Change what labels show: right-click a label and choose Format Data Labels. Under Label Options you can show the series name, category name or value, and set a number format such as currency or one decimal place.
  • Undo a typed-over label: typing over a label breaks its link to the worksheet value. In Format Data Labels, check Reset Label Text to bring the values back.

Legend

Move the legend with Chart Elements > Legend and the arrow next to it, or drag it to any spot on the chart. The legend text comes from the series names, so to rename an entry, change the header cell in the worksheet (for example B1) or rename the series in Select Data. For more legend changes, see these steps to edit the legend in Excel.

Does editing the chart change my worksheet data?

Formatting, filters, titles and chart type changes don’t touch the cells. Removing a series in Select Data also leaves the cells alone. The link only works the other way: changing worksheet values changes the chart.

Change the data a graph uses

A chart is linked to its worksheet cells. If you type a new number in B4, the chart changes as soon as you press Enter. For bigger changes, use one of these methods.

Drag the range handles

  1. Click the chart. Excel outlines the source data on the sheet in color: one color for the category labels, one for the series names and one for the values.
  2. Drag the small square handle at a corner of the outlined values to include more rows or columns (for example, extend it down to row 8 after you add July).

Use Select Data to add, remove or edit series

  1. Right-click the chart and choose Select Data, or go to Chart Design > Select Data. The Select Data Source dialog opens.
  2. Chart data range at the top shows the whole range. You can retype it or select a new range on the sheet.
  3. On the left, under Legend Entries (Series):
    • Add a series: give it a Series name (a cell such as D1, or typed text) and Series values (for example D2:D7).
    • Edit a series to change its name or the cells it uses.
    • Remove a series you no longer want plotted. The worksheet data stays where it is.
    • Use the up and down arrows to change series order, which changes the order of bars and stacks.
Select Data Source dialog in Excel listing two series and month category labels
Select Data Source lists Online and Store as series and Jan–Jun as category labels. Add, Edit, Remove, the reorder arrows, and Switch Row/Column are highlighted; the source cells remain unchanged.
  1. On the right, under Horizontal (Category) Axis Labels, click Edit to point the axis labels at different cells. Use a range the same size as the values so every point gets a label.
  2. Click OK.

Microsoft’s page on updating the data in an existing chart walks through the same dialog. If you’re plotting several ranges that sit in different places, the steps to add multiple data sets to a graph go further.

Switch rows and columns

If months appear in the legend and Online and Store sit along the bottom, Excel has grouped the data the other way from what you wanted. Click Chart Design > Switch Row/Column (or the button of the same name in Select Data). Click it again to switch back.

Hide data without deleting it

  1. Click Chart Filters (the funnel) beside the chart.
  2. On the Values tab, clear the check box for any series or category you want to hide, such as Store or June.
  3. Click Apply.

If there’s no Chart Filters button beside your chart, open Select Data and clear the check box next to the series or category instead. Hidden items stay in the worksheet and can be turned back on at any time.

By default, a chart also skips data in hidden worksheet rows and columns. To plot them anyway, open Select Data, click Hidden and Empty Cells and check Show data in hidden rows and columns. The same dialog controls whether empty cells show as gaps, zero, or (on line charts) a connecting line.

Change the chart type or mix two types

  1. Select the chart and click Chart Design > Change Chart Type.
  2. Pick a new type on the All Charts tab, such as Line or Bar. The preview shows your own data.
  3. Click OK. The data stays the same; only the way it’s drawn changes.

Change the type before you spend time on formatting. Some custom formatting, and features such as trendlines, may not carry over to every chart type, so check the result after switching. If you chose a pie chart, you can make a pie chart in Excel with percentages so each slice shows its share.

To show one series as columns and another as a line, choose Combo at the bottom of the All Charts list and set a chart type for each series. Adding a running average is a common use; see how to add an average line to an Excel chart. For layering two separate charts, the walkthrough to combine two charts in Excel covers it. To show parts of a total, a stacked column chart is often a better fit than side-by-side columns.

Add a secondary axis

When two series use very different scales, such as sales in thousands of dollars and an order count under 100, the smaller series looks flat. Put it on its own axis:

  1. Right-click the smaller series and choose Format Data Series.
  2. Under Series Options, select Secondary Axis. A second value axis appears on the right side of the chart.
Format Data Series pane with Secondary Axis selected and a second value axis on the right of the chart
The fictional Orders line uses the selected Secondary Axis, scaled from 0 to 100 on the right. Online and Store columns use the left Sales (USD) axis from 0 to 5,000. The two axes are labelled to distinguish their units.
  1. Optional: right-click the series, choose Change Series Chart Type and make it a line so it doesn’t cover the columns.

You can also do this in one place with Change Chart Type > Combo, which has a Secondary Axis check box next to each series. To remove it, select Primary Axis again for that series. Label both axes with axis titles so readers know which scale belongs to which series.

Format the axes

Double-click the numbers on the vertical axis (or right-click them and choose Format Axis). The Format Axis pane opens with Axis Options selected.

Format Axis pane in Excel showing Bounds and Units settings for the vertical axis
The selected sales axis starts at 0, ends at 5,000, and has a 1,000 major unit, matching the chart. Bounds and Units are highlighted. Reset returns a changed value to automatic scaling; Display units remains None.
  • Bounds: type a Minimum and Maximum to set where the axis starts and ends.
  • Units: the Major unit sets the gap between axis labels and major gridlines, for example every 500.
  • Reset: the Reset button next to a changed value puts it back to Auto.
  • Display units: shows large numbers as thousands or millions, with an optional units label.
  • Logarithmic scale: useful for values that grow by multiples. It can’t plot zero or negative values.
  • Values in reverse order: flips the axis.
  • Number: further down the pane, sets the label format, such as currency with no decimals or percentage.

A word of caution on bounds: starting a column chart’s axis above zero makes small differences look large. That can be useful for spotting a trend, but say so in the title or axis title if the chart will be shared. Microsoft lists every option on its page about changing the scale of the vertical (value) axis.

The horizontal axis usually shows categories (text such as month names), so it has different options. To change the labels themselves, edit the cells they come from or use Select Data > Horizontal (Category) Axis Labels > Edit.

Can I remove or lighten the gridlines?

Yes. Clear Gridlines under Chart Elements to remove them, or double-click a gridline and use Fill & Line to make it lighter, thinner or dashed. The spacing between gridlines follows the axis Major unit.

Change colors and fine-tune with the Format pane

For the whole chart, use Chart Design > Change Colors or a style from the Chart Styles gallery. These palettes follow the workbook theme, so changing the theme under Page Layout > Colors recolors charts too.

For one element at a time:

  1. Double-click the element, for example the Online columns. The Format pane opens for that series.
  2. Click the Fill & Line icon (the paint bucket) to change the fill color, border or line style. The Series Options icon holds settings like Gap Width on column and bar charts.
  3. Leave the pane open and click another element. The pane switches to that element, so you can work through the chart without closing it.

To color a single bar, such as the best month, click the series once and then click that one bar again so only it is selected before you change the fill. On a pie chart you can also pull one slice away from the pie to draw attention to it. Stacked bars need a few extra tweaks, such as gap width and total labels, which are covered in this walkthrough on how to create a stacked bar chart in Excel.

If an element is hard to click, pick it from the Chart Elements drop-down list on the Format tab (in the Current Selection group), then click Format Selection.

Move, resize, copy or reuse the graph

  • Move it: drag the chart by its border. To give it its own sheet, use Chart Design > Move Chart > New sheet.
  • Resize it: drag a corner handle. Hold Shift while dragging a corner to keep the proportions.
  • Copy it into a report: you can copy a graph from Excel to Word and keep it linked so it updates when the numbers do.
  • Save the look as a template: right-click the finished chart, choose Save as Template, name it and click Save. Excel stores it as a .crtx file. Apply it to a new chart from Insert Chart > All Charts > Templates, or to an existing chart from Change Chart Type > All Charts > Templates. Microsoft’s steps to save a custom chart as a template include a note on template colors.

Editing a graph on a Mac or in Excel for the web

The Chart Design and Format tabs and the Format pane work much the same in Excel for Mac. Microsoft’s Excel for Mac chart instructions use the ribbon rather than the buttons beside the chart: Chart Design > Add Chart Element for titles, labels, gridlines and the legend, Quick Layout for preset combinations, the style gallery for looks, and Select Data to add, remove or hide series. Right-click (or Control-click) an element to open its format options.

In Excel for the web, chart formatting is done in the Chart Format task pane. Common formatting works there, but some desktop-only effects (such as 3-D bevels and lighting, shadows and glows) and some chart types (3-D charts, stock charts, Pie of Pie and Bar of Pie, and charts on a separate chart sheet) have limited formatting in the browser. If an option is missing, select Editing mode if the workbook opened in viewing mode, or open the file in the desktop app.

Check your changes and undo them

  • Confirm the chart still matches the data: change one value in the sheet and watch the matching bar or point move. If nothing moves, that cell isn’t part of the chart range.
  • Undo a recent change: press Ctrl + Z (Command + Z on a Mac) as many times as needed.
  • Clear custom formatting on one element: right-click it and choose Reset to Match Style. Selecting the chart area first and doing the same resets the whole chart’s formatting to the current style.
  • Remove an element: click it and press Delete, or clear its box under Chart Elements.
  • Keep the changes: save the workbook (Ctrl + S). Chart edits are saved with the file.

Troubleshooting chart edits

  • The Chart Design tab is missing. The chart isn’t selected. Click inside the chart area rather than on a cell behind it. If the chart itself has vanished, it may be hidden; here’s how to unhide a chart in Excel.
  • Format options are grayed out or apply to the wrong thing. The whole chart is selected instead of one element. Click the exact bar, line or label, or pick it from the Format tab’s element list.
  • New rows don’t appear in the chart. They’re outside the chart range. Drag the range handles or fix the range in Select Data. To avoid this, turn the data into a table (Ctrl + T) before you add rows; a chart built on a table generally grows with it.
  • A series or category disappeared. It’s probably unchecked in Chart Filters or Select Data, or it’s in a hidden row. See Hide data without deleting it.
  • The axis labels show 1, 2, 3 instead of month names. The category label range is empty or points to the wrong cells. Fix it under Horizontal (Category) Axis Labels in Select Data.
  • Formatting changed after switching chart types. Some formatting doesn’t survive a type change. Undo, or switch type first and format last.
  • You can’t edit anything. The workbook may be in Protected View (click Enable Editing) or the sheet may be protected (Review > Unprotect Sheet, which may need the password).
  • The chart is in Word or PowerPoint and won’t update. Select the chart there and use Chart Design > Edit Data. If it was pasted as a linked chart and the workbook has been moved or renamed, the link has to be updated before the data can be edited.