Smart Systems for Home

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

Excel Select Data Source for Chart: Step-by-Step Guide

· 6 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 select the data source for a chart in Excel, click on the chart, go to the Chart Design tab, and click Select Data. From there, you can add, edit, or remove the cell ranges that provide the values and labels for your visualization. This process allows you to change which numbers are being plotted without having to delete and recreate the entire chart from scratch.

What You'll Need

  • A computer with Microsoft Excel installed.
  • A dataset organized in rows and columns (headers are highly recommended for clarity).
  • An existing chart if you are modifying data, or a blank worksheet if you are starting a new one.

Step-by-Step

  1. Prepare Your Data: Ensure your data is arranged in a clean table format. For the best results, place your labels (categories) in the leftmost column and your numerical values in the columns to the right. Ensure there are no completely empty rows or columns within the data block, as this can confuse Excel's automatic range detection.
  2. Insert an Initial Chart (If Applicable): If you haven't created a chart yet, highlight the general area of your data, go to the Insert tab, and select a chart type (such as a Column or Line chart). If you already have a chart and simply need to change the source, skip to the next step.
  3. Activate the Select Data Source Menu: Right-click anywhere in the blank area of your chart and select Select Data from the context menu. Alternatively, click the chart to make it active, navigate to the Chart Design tab in the top ribbon, and click the Select Data button in the Data group. Note that menu labels may differ slightly depending on your version of Excel or operating system.
  4. Modify the Chart Data Range: In the Select Data Source dialog box, look for the Chart data range box at the top. You can either type the range manually (e.g., =Sheet1!$A$1:$B$10) or click the collapse button (the small arrow/grid icon) to select the range directly on your spreadsheet with your mouse. Drag your cursor over all the cells you want included, including the headers.
  5. Manage Legend Entries (Series): The left side of the dialog box lists the Legend Entries (Series). These are the actual data points being plotted. To add a new data series, click Add. In the Series window:
    • Series name: Click the cell containing the header for that data column.
    • Series values: Clear the default entry and highlight the range of cells containing the numbers for that specific series.
  6. Manage Horizontal Axis Labels: The right side of the dialog box controls the Horizontal (Category) Axis Labels. If your chart is showing "1, 2, 3..." instead of your actual names or dates, click Edit. Highlight the range of cells that contains your labels (e.g., the names of months or products) and click OK.
  7. Filter and Refine: Before clicking OK to close the main dialog, you can use the checkboxes in the Legend Entries list to temporarily hide specific data series without deleting them from the source range.
  8. Confirm and Apply: Click OK. Your chart will instantly update to reflect the new data ranges, labels, and series you have defined.

Common Mistakes

One of the most frequent errors is including the total row in the data selection. If your table has a "Total" or "Sum" row at the bottom, including it in the chart source will create a massive spike in your graph, making the other individual data points look tiny and insignificant. Always exclude summary rows from your selection.

Another common mistake is selecting mismatched ranges. For a chart to function, the range for the Legend Entries (the values) must be the exact same size as the range for the Horizontal Axis Labels. If you select ten cells for your values but only nine cells for your labels, Excel may produce an error or misalign the data points, leading to inaccurate reporting.

Users often forget to include headers in their initial selection. While you can add them later via the Select Data menu, failing to include headers at the start often results in Excel guessing the series names, which leads to generic labels like "Series 1" and "Series 2" appearing in the legend.

Tips

To make your data source dynamic, convert your data range into an official Excel Table before creating the chart. Select your data and press Ctrl + T. When you use a Table as a data source, any new rows you add to the bottom of the table are automatically incorporated into the chart. You won't have to return to the Select Data menu every time you add a new month of data or a new product line.

If you are working with a very large dataset, use the Name Manager (Formulas tab > Name Manager) to create a named range. Instead of selecting cells like $A$1:$B$500, you can simply type the name of the range in the Select Data box. This makes the source much easier to read and manage.

For charts that require frequent updates, consider using a PivotChart. PivotCharts allow you to change the data source and the way data is aggregated (sum, average, count) through a simple drag-and-drop interface, bypassing the need to manually edit cell ranges in the Select Data dialog.

Troubleshooting

If the Select Data button is greyed out or unresponsive, ensure that you have actually clicked inside the chart area. The Chart Design tab only appears when a chart is active. If you are using a shared workbook or a protected sheet, you may need to unprotect the sheet (Review tab > Unprotect Sheet) before you can modify the data source.

If your data is not appearing in the chart despite being selected, check the formatting of your cells. Excel cannot plot text as a numerical value. If your numbers are formatted as text (often indicated by a small green triangle in the corner of the cell), the chart will treat them as zeros or blanks. Highlight the cells, click the warning icon, and select Convert to Number.

If the chart looks distorted after changing the source, check for hidden rows or columns. By default, Excel does not plot data that is in a hidden row or column. If you have filtered your data or manually hidden rows, they will disappear from the chart. To fix this, go to Select Data > Hidden and Empty Cells and check the box for Show data in hidden rows and columns.

Frequently Asked Questions

Can I select data from two different worksheets for one chart?

Yes. When adding a new series in the Select Data menu, you can click on a different worksheet tab and select the desired range. Excel will automatically update the reference to include the sheet name.

Why does my chart show "Series 1" instead of my column header?

This happens when the Series Name field in the Select Data dialog is empty or points to a blank cell. Click Edit on the series and select the cell containing the header text.

How do I remove a specific data series from my chart?

Open the Select Data Source dialog, highlight the series you want to remove from the Legend Entries list on the left, and click the Remove button.

Can I select non-adjacent cells as a data source?

Yes. While selecting the range with your mouse, hold down the Ctrl key (Cmd on Mac) to click and select multiple separate ranges or individual cells.

What happens if I delete the source data after the chart is made?

The chart will either become blank or show an error because the reference is broken. You will need to use the Select Data menu to point the chart to a new, valid range of cells.