To change the range of a graph in Excel, right-click the chart and select Select Data, then adjust the range in the Chart data range box or modify individual series. This process allows you to expand your graph to include new rows of data, remove outdated information, or switch the data source entirely without having to delete and recreate the chart.

Updating the range is essential when your dataset grows over time. Instead of manually adding every new data point, you can simply shift the boundary of the selected cells to ensure your visual trends remain current and accurate.

What You'll Need

  • A computer with Microsoft Excel installed.
  • An existing chart or graph within an Excel workbook.
  • The new data range identified or already entered into your spreadsheet.

Step-by-Step

Depending on your version of Excel, menu labels may differ slightly, but the core logic remains the same across desktop versions.

  1. Select the Chart: Click once on the chart you wish to modify. This will activate the chart tools in the top ribbon.
  2. Open the Select Data Dialog: Right-click anywhere in the chart area (avoiding the actual data bars or lines if possible) and select Select Data... from the context menu. Alternatively, go to the Chart Design tab in the top ribbon and click the Select Data button in the Data group.
  3. Modify the Chart Data Range: In the Select Data Source window that appears, look for the Chart data range box at the top.
    • To change the entire range, click the collapse button (the small arrow/grid icon) at the right end of the text box.
    • Your cursor will move to the spreadsheet. Click and drag your mouse to highlight the new area of cells you want to include in the graph.
    • Press Enter or click the collapse button again to return to the dialog box.
  4. Adjust Individual Series (Optional): If you only need to change one specific line or bar rather than the whole chart:
    • In the Legend Entries (Series) box on the left, select the specific data series you want to change.
    • Click the Edit button.
    • In the Series values box, clear the existing range and select the new range of cells on your sheet.
    • Click OK.
  5. Update Category Labels (Optional): If your X-axis (horizontal axis) labels are incorrect or missing data:
    • In the Horizontal (Category) Axis Labels box on the right, click Edit.
    • Select the range of cells containing your labels (e.g., dates or names).
    • Click OK.
  6. Finalize Changes: Click OK at the bottom of the Select Data Source window to apply all changes to your graph.

Common Mistakes

  • Including Blank Cells: Selecting too large a range that includes empty rows can cause gaps in your line graphs or unnecessary white space on your axes.
  • Mismatched Range Sizes: Ensuring the "Series values" range and the "Category labels" range are the same length. If you select 10 cells for data but only 8 for labels, Excel may produce an error or misalign the data.
  • Selecting Headers Twice: Including the column headers in the "Series values" box instead of the "Series name" box can cause Excel to treat the text header as a data point, often resulting in a graph that looks skewed or broken.
  • Forgetting to Click OK: Closing the Select Data window by clicking the "X" instead of the "OK" button will discard all your range adjustments.

Tips

  • Use Excel Tables: If you convert your data range into an official Table (select data and press Ctrl + T), any graph linked to that table will update its range automatically whenever you add a new row to the bottom of the table. This eliminates the need to manually change the range.
  • The Drag Handle: For very simple range expansions, click the chart. You will see colored borders appear around your data cells in the spreadsheet. You can often click and drag the corner handle of these colored boxes to expand the range visually.
  • Named Ranges: For advanced users, creating a "Named Range" using the Name Manager allows you to reference a specific set of data by name, making it easier to manage complex charts across different sheets.

Troubleshooting

If your graph does not update as expected, try these steps in order:

  1. Check for Hidden Rows: Excel typically does not plot data in hidden rows or columns. If your range is correct but data is missing, ensure no rows within that range are hidden.
  2. Verify Data Types: Ensure the cells in your new range are formatted as "Number" or "General." If numbers are stored as text, Excel will ignore them, and the graph will appear empty.
  3. Refresh the Data: If you are using a PivotChart, you must right-click the chart and select Refresh after changing the source data range.
  4. Restart the Selection: If the range box is acting erratically, clear the Chart data range box completely and re-select the entire area from scratch.

Frequently Asked Questions

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

Right-click the chart, choose Select Data, and click the Add button under the Legend Entries (Series) section. Define the name and the cell range for the new data.

Can I change the range of a graph on a different worksheet?

Yes. When the Select Data window is open and you are selecting the range, simply click on the other worksheet tab at the bottom of Excel and highlight the desired cells.

Why is my graph showing a huge empty space after I changed the range?

This usually happens because you selected empty cells at the bottom or side of your data. Go back to Select Data and tighten the range to include only cells with actual values.

Is there a way to make the range update automatically?

The most efficient way is to format your source data as a Table (Ctrl + T). Charts based on Tables are dynamic and expand automatically as you add new entries.

How do I remove a specific range of data from my graph?

Open the Select Data menu, select the series you no longer want from the left-hand list, and click the Remove button.