Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Chart Data Range in Excel: How to Select & Change

· 9 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To chart a data range in Excel, first select the cells you want to plot, then go to the Insert tab and pick a chart type. If you need to change the range after the chart exists, right-click the chart and choose Select Data to edit the series. This guide covers both the initial selection and the editing process, including how to handle non-contiguous data and dynamic ranges. You only need a worksheet with data and a version of Excel from 2010 onward (the steps are nearly identical in Excel for Microsoft 365, Excel 2019, and Excel 2016).

What You'll Need

  • A computer with Microsoft Excel installed (Windows or Mac; menu names differ slightly on Mac).
  • A worksheet containing the data you want to chart. The data should be arranged in rows or columns, typically with headers in the first row or first column.
  • No special add-ins or permissions are required—this works in the standard Excel interface.

Step-by-Step

Creating a New Chart from a Data Range

  1. Open your Excel workbook and navigate to the worksheet that contains the data you want to chart.
  2. Select the data range including headers. For example, if your data is in cells A1:B10, click and drag from A1 to B10. Make sure to include the column headers if you want them to appear as series names or axis labels.
  3. If your data is not contiguous (e.g., you want to chart column A and column C but not column B), hold down the Ctrl key (on Windows) or Cmd key (on Mac) while selecting the additional ranges. Excel will treat them as separate series.
  4. Go to the Insert tab on the Ribbon. In the Charts group, you'll see several chart type buttons: Column, Line, Pie, Bar, Area, Scatter, and more. Click the one that matches the type of chart you want. For a simple comparison, a column chart works well; for trends over time, use a line chart.
  5. Excel immediately creates the chart and places it on the same worksheet. The chart is selected by default, and you'll see a new Chart Design tab appear on the Ribbon.
  6. If you need to change the chart type later, select the chart, go to the Chart Design tab, and click Change Chart Type.

Changing the Data Range of an Existing Chart

  1. Click on the chart to select it. This activates the chart tools.
  2. On the Ribbon, go to the Chart Design tab (or Design on some versions). Look for the Data group and click Select Data. Alternatively, you can right-click directly on the chart and choose Select Data from the context menu—this works in all modern versions.
  3. The Select Data Source dialog box opens. On the left side, you'll see a list of Legend Entries (Series). On the right side, you'll see the Horizontal (Category) Axis Labels.
  4. To change the entire data range, click the Chart data range box at the top of the dialog. This box shows the current range (e.g., =Sheet1!$A$1:$B$10). Click the collapse button (a small spreadsheet icon) at the right end of the box to minimize the dialog, then select the new range on the worksheet. Click the expand button to return to the dialog.
  5. To edit a specific series, select the series name in the list on the left, then click Edit. This opens the Edit Series dialog where you can change the Series name and Series values (the Y values). For example, if you only want to plot data from column C instead of column B, you would change the series values from =Sheet1!$B$2:$B$10 to =Sheet1!$C$2:$C$10.
  6. Similarly, to change the axis labels (the X-axis categories), click the Edit button under Horizontal (Category) Axis Labels. Select the new range for the labels.
  7. Click OK to apply the changes. The chart updates immediately.

Adding or Removing a Series

  1. Open the Select Data Source dialog as described above.
  2. To add a new series, click the Add button under Legend Entries. In the Edit Series dialog, enter a name (or select a cell containing the name) and the values range. Click OK.
  3. To remove a series, select it in the list and click the Remove button.
  4. To change the order of series, select a series and use the up/down arrows.

Using a Table for Automatic Range Expansion

  1. If you frequently add rows to your data, convert your data range to an Excel Table. Select the data, then press Ctrl+T (Windows) or Cmd+T (Mac). Confirm the range and check My table has headers.
  2. When you create a chart from a table, Excel automatically includes any new rows you add to the table. The chart's data range will show as a structured reference like =Table1[Column1].
  3. If you already have a chart, you can convert the underlying data to a table, then edit the chart's data range to reference the table columns instead of the raw cells.

Common Mistakes

  • Including empty cells or totals in the range. If you select a range that includes blank rows or a total row, Excel will plot those as zero or as a separate category. Always check that your range covers only the data you want.
  • Selecting non-contiguous ranges without holding Ctrl. If you click and drag across separate areas without holding Ctrl, Excel replaces the selection with only the last range. Use Ctrl (or Cmd on Mac) to add to the selection.
  • Using the wrong axis labels. When you select data, Excel guesses which column is the X-axis. If your first column is numeric, Excel might treat it as a series instead of axis labels. You can fix this in the Select Data Source dialog by editing the Horizontal Axis Labels.
  • Editing the series values but not the series name. If you change the values range, the series name might still reference the old header. Check the Series name box in the Edit Series dialog.
  • Forgetting to update the chart after modifying source data. Excel usually updates charts automatically, but if you have calculation set to manual (Formulas tab > Calculation Options > Manual), the chart may not reflect changes until you press F9.

Tips

  • Use named ranges for dynamic charts. You can define a named range using the OFFSET or INDEX function that expands automatically. For example, create a named range ChartData with the formula =OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),2). Then use =ChartData as the chart's data range. This is more advanced but very useful for dashboards.
  • Use the keyboard shortcut Alt+F1 (Windows) to create a default chart from the selected data instantly. On Mac, it's Fn+Option+F1.
  • Check the 'Hidden and Empty Cells' settings. In the Select Data Source dialog, click the Hidden and Empty Cells button. You can choose to plot empty cells as gaps or zero, and you can choose to show data in hidden rows/columns. This is useful when you filter data.
  • If you have a lot of data, consider using a PivotChart instead of a regular chart. PivotCharts let you filter and slice data without changing the source range.
  • Keep your data in a single block when possible. Charts are easier to manage when the data is contiguous. If you must skip columns, consider hiding them instead of leaving gaps, but remember that hidden columns by default are not plotted unless you change the setting.

Troubleshooting

Chart shows blank or missing data

  1. First, check if the source data has any errors like #N/A or #DIV/0!. These can cause gaps in the chart. Replace them with #N/A if you want gaps, or fix the errors.
  2. Verify that the chart's data range includes the correct cells. Open Select Data Source and look at the range reference. If it's pointing to the wrong sheet, correct it.
  3. Check if the data is in a table that has a filter applied. If a filter hides rows, the chart may not show them. Clear the filter or change the Hidden and Empty Cells setting to plot hidden data.

Chart does not update when I change source data

  1. Ensure that Excel's calculation mode is set to Automatic. Go to Formulas > Calculation Options > Automatic.
  2. If you are using a named range with OFFSET, the chart may not update if the named range is not volatile. Press F9 to force a recalc.
  3. If the chart is on a different sheet, it still updates automatically, but if you have multiple workbooks open, ensure the source workbook is not in manual calculation mode.

I can't select non-contiguous data for a chart

On Windows, you can hold Ctrl while selecting multiple ranges. On Mac, hold Cmd. If this does not work, try selecting the first range, then press and hold Ctrl (or Cmd) and click the second range. If you still have trouble, create a chart from the first range, then add the second range as a new series using the Add button in Select Data Source.

My chart shows the wrong X-axis labels

This usually happens when Excel interprets your first column as data rather than labels. In the Select Data Source dialog, under Horizontal (Category) Axis Labels, click Edit and select the correct range. If your first column is numeric, Excel might treat it as a series. To fix, remove that series from Legend Entries and set the correct axis label range.

Frequently Asked Questions

How do I change the data range in an Excel chart?

Right-click the chart and select Select Data. In the dialog, you can edit the entire range in the 'Chart data range' box, or edit individual series and axis labels. Click OK to apply.

Can I use a formula to define a chart data range?

Yes. In the Select Data Source dialog, you can type a formula that returns a range, such as =OFFSET(...) or =INDEX(...). This is useful for dynamic charts that update automatically when you add data.

Why does my chart include empty cells as zero?

Excel's default is to plot empty cells as gaps, not zero. If you see zeros, check the 'Hidden and Empty Cells' button in the Select Data Source dialog. It might be set to 'Zero'. Change it to 'Gaps' if you prefer.

How do I add a new data series to an existing chart?

Right-click the chart, choose Select Data, then click Add under Legend Entries. Specify the series name and values range. Alternatively, you can select the new data on the worksheet, copy it, then click on the chart and paste—Excel will add it as a new series.

What is the difference between a chart data range and a series?

The chart data range is the entire set of cells that the chart uses, including all series and axis labels. A series is a single set of data (like one column) that is plotted. A chart can have multiple series, each with its own range.

Can I use a chart data range from a different worksheet?

Yes. In the Select Data Source dialog, the range can reference cells on any sheet in the same workbook. For example, =Sheet2!$A$1:$B$10. You can also reference a different workbook, but that is not recommended as it can break if the other workbook is closed.