To change the data range of a chart in Excel, click the chart so its outline handles appear, then drag the colored range borders on the worksheet to include or exclude rows and columns. For precise control, right-click the chart and choose Select Data, where you can edit the chart data range box, add or remove individual series, and swap the category (horizontal) axis labels. With no chart selected, right-click any cell inside your data set and choose Quick Analysis to insert a chart that already knows its range. Getting the range right is what makes a chart show the numbers you meant, in the order you meant, with readable labels on the axes.

What You'll Need

  • Microsoft Excel on Windows, Mac, or the web (labels and menu wording differ slightly between versions, platforms, and regions)
  • A worksheet with data laid out in columns or rows, ideally with a header row naming each column
  • A chart on the same sheet or another sheet (an embedded chart is easiest to edit)

Step-by-Step

  1. Lay out your data cleanly first. Put column names in the top row, one record per row, and avoid blank rows and blank columns inside the block. Keep a single header row; a merged title cell above the headers confuses Excel's range detection. If you have a totals row at the bottom, be ready to leave it out of the plot so the total is not charted as another category.
  2. Select the data block you want to plot. Drag from the top-left header cell to the bottom-right value. Include the header row if you want Excel to name the series and axis automatically. Do not include summary rows or notes beside the table.
  3. Insert the chart. Go to Insert and choose the chart type group you want, such as Column, Line, or Pie, then pick a chart from the gallery. Excel plots the selection and, in most cases, infers whether your rows or columns are the series. A chart is now embedded on the sheet.
  4. Fine-tune the built-in range with the drag handles. Click once on the chart. On the worksheet, Excel outlines the plotted range in blue with small square handles at the corners; the label range (categories) is outlined separately, often in purple. Drag a corner or edge handle to grow or shrink the range. This is the fastest fix when you simply added a new month's data.
  5. Open Select Data for exact control. Right-click the chart and choose Select Data, or use Chart Design > Select Data on the ribbon. The dialog shows two lists: Legend Entries (Series) on the left and Horizontal (Category) Axis Labels on the right, above a Chart data range box that summarizes the whole plot.
  6. Edit the overall range. Clear the Chart data range box and either type the reference, such as A1:D13, or click in the box then drag over the new block on the sheet. Press OK. The sheet name will appear in the reference, for example Sheet1!$A$1:$D$13, and the dollar signs simply lock the references.
  7. Or edit one series at a time. Select a series in the Legend Entries list and choose Edit. In the Series values box, replace the range with the cells holding that series. Use Edit next to Horizontal (Category) Axis Labels to repoint the labels so each bar or point gets the right name. Use Add to bring in a new series and Remove to drop one.
  8. Fix a reversed or wrong category order. If Excel has swapped rows and columns, use Switch Row/Column on the Chart Design tab. If dates are being read as plain text labels, the axis menu offers an option to treat the axis as a date axis.
  9. Point the chart at a table or named range to make it grow. Convert your source block to a table (select it and use Insert > Table on the ribbon), then build the chart from the table. New rows typed at the bottom of the table are picked up when you refresh the chart's range or reopen the data range box. You can also define a named range and type that name into the Chart data range box.
  10. Check the result visually. Confirm the number of bars, lines, or slices matches your rows, that legend entries use your header text, and that the axis labels read as months or names rather than Series1, Series2. If something is off, reopen Select Data and compare each series box with the sheet.

Common Mistakes

  • Including the totals row. The grand total becomes a category of its own and squashes every other bar. Remove it from the range.
  • Leaving out the header row. Series and axis names then default to generic labels, forcing manual renaming.
  • Selecting stray cells. A hidden note or a blank cell two columns over expands the plot with empty categories. Rebuild the range tightly.
  • Editing the wrong series. In Select Data, clicking Edit while the overall range box is active edits the whole plot, not the series you meant. Select the series name in the list first.
  • Assuming the chart updates itself. Charts tied to a plain cell range do not expand when you type a new row; you must redrag the handles or rebuild from a table.
  • Deleting source rows instead of changing the range. Deleting the underlying cells removes the data permanently; always shrink the range instead.

Tips

  • Name your ranges (Formulas > Name Manager) so the Chart data range box can accept a short, readable name.
  • Keep one chart per data block. Copying a chart and repointing its range is faster than building from scratch.
  • Use Move Chart on the Chart Design tab to place a chart on its own sheet when the data set is large.
  • If you only want a subset, create a PivotChart from a PivotTable and filter it; the chart follows the filter rather than a fixed range.
  • Widen the Select Data dialog by dragging its edge if the range references are cut off on screen.

Troubleshooting

If the chart will not change at all, confirm you clicked the chart itself rather than a cell, and check that the sheet is not protected, since protection can block range edits. If dragging handles selects the wrong cells, zoom out to see the whole block, or type the reference directly in the Chart data range box. If new rows fail to appear, your chart likely points at a fixed range rather than a table; rebuild it from an Excel Table or redo the range selection.

If labels show as numbers, the label cells are probably formatted as numbers rather than text, so repoint the category axis labels at the correct column. If the chart shows dates as text, enable the date axis option. If bars look wrong in count, one series is likely pointing at the wrong column; open Select Data and check each series box in turn. When the chart is completely blank, the range may point to empty cells or another sheet that has been deleted, so retype a valid reference. On Excel for the web and on mobile, some dialog options are trimmed down: use the chart's menu to select its data, or open the file in the desktop app to reach Select Data, which is not available everywhere in the browser version.

Frequently Asked Questions

Can I make a chart update automatically when I add data?

Yes, if the source is an Excel Table or the chart range is a dynamic formula range. A chart built on a fixed cell range only expands when you drag the handles or edit the range.

How do I change just the labels on the horizontal axis?

Right-click the chart, choose Select Data, then use Edit next to Horizontal (Category) Axis Labels and point it at the cells holding your labels.

Why does my chart show extra blank categories?

The range includes empty cells. Shrink the range in Select Data or drag the outline handle inward so it covers only cells with values.

Can I plot data from two different sheets in one chart?

Yes. Each series is a reference, so you can add series from other sheets or even other workbooks while all series must sit in the same workbook for editing to work smoothly.

What is the difference between the blue and purple outlines?

The blue outline is the plotted value range; the purple outline is the category label range, which can cover different cells.

Does changing the range delete my data?

No. Editing the chart range only changes what is plotted; the underlying cells are untouched.