How to Change the Chart Data Range in Excel (5 Quick Methods)

In the sample dataset, there are 3 columns: Customer Name, Sales, and Profit.

How to Change Chart Data Range in Excel


Method 1 – Using the Design Tab

Steps:

  • Select the data. We have selected the range B4:D9.
  • Go to the Insert tab.

  • From the Charts group section, select Insert Column or Bar Chart.
  • We chose under 2-D Column >> Clustered Column. Select according to your preference.

How to Change Chart Data Range in Excel

  • Click the 2-D Clustered Column feature and get the result.

  • Select the chart.
  • From Chart Design >> choose Select Data.

How to Change Chart Data Range in Excel

You will see the following dialog box named Select Data Source.

How to Change Chart Data Range in Excel

  • From the dialog box of Select Data Source, choose the Sales Option.
  • Click on the Edit feature.

A new dialog box named Edit Series will appear.

  • Enter the data range in Series values up to what you want to keep in the chart. We have included a new cell C10 and have written it as $C$5:$C$10.
  • Click OK.

How to Change Chart Data Range in Excel

The previous dialog box of Select Data Source will appear.

  • Select the Profit option to change the data range of Profit.
  • Choose the Edit feature.

  • The dialog box named Edit Series will appear.
  • Edit the Profit.
  • We have included a new cell, D10, and written $D$5:$D$10 in the Series values box.
  • Click on OK.

How to Change Chart Data Range in Excel

The previous dialog box of Select Data Source will appear.

  • Click on the Edit option to change the Axis Labels.

A dialog box named Axis Labels will appear.

  • Then, you have to select the Axis label range. Here, I have selected the range from B5:B10.
  • Now, press OK to make the changes.

How to Change Chart Data Range in Excel

  • Press OK on the Select Data Source box.

You can view the following Chart with the changed data range.

How to Change Chart Data Range in Excel

Read More:  How to Change Data Source in Excel Chart


Method 2 – Using the Context Menu Bar

Steps:

  • Select the data. We have selected the range B4:D9.
  • Go to the Insert tab.

  • From the Charts group section, select Insert Column or Bar Chart.
  • We have chosen under 2-D Column >> Clustered Column. Here, the selection will be according to your preference.

How to Change Chart Data Range in Excel

You can now see the following Column Chart.

Now, you want to change the chart data range.

  • Right-Click on the chart.
  • From the Context Menu Bar >> choose Select Data.

How to Change Chart Data Range in Excel

You will see the following dialog box of Select Data Source.

  • From the dialog box of Select Data Source, choose the Edit feature under the Sales option.

A new dialog box named Edit Series will appear.

  • Enter the data range in Series values up to what you want to keep in the chart. We have included a new cell C10 and have written  $C$5:$C$10.
  • Click OK.

How to Change Chart Data Range in Excel

The previous dialog box of Select Data Source will appear.

  • Click on the Edit option to change the Axis Labels.

  • Select the Axis label range. We have selected the range from B5:B10.
  • Press OK to make the changes.

How to Change Chart Data Range in Excel

  • Press OK on the Select Data Source box.

You will see the following changed chart. How to Change Chart Data Range in Excel

Read More:  How to Edit Chart Data in Excel


Method 3 – Using the Mouse Pointer

Steps:

  • Click on the chart.
  • Go to the data range and drag the Mouse Pointer below to include the data.

How to Change Chart Data Range in Excel

You can see that all wanted data are selected.

You will see the result.

How to Change Chart Data Range in Excel

If you want to remove some data:

  • Click on the chart.
  • Drag the Mouse Pointer up in the data range.

You can see the result below.


Method 4 – Using the Table Feature 

Steps:

  • Select the data. We have selected the range B4:D9.
  • From the Insert tab >> select the Table feature.

How to Change Chart Data Range in Excel

A dialog box of Create Table will appear.

  • Select the data for your table. This will be auto-selection. The auto-selected range is  B4:D9.
  • Make sure that “My table has headers” is marked.
  • Press OK.

You will see the following table.

  • Select the table.
  • Go to the Insert tab.

How to Change Chart Data Range in Excel

  • From the Charts group >> choose 2-D Line >> select Line with Markers feature.

The Chart is ready now.

How to Change Chart Data Range in Excel

If you Copy-Paste any data to the cell that is adjacent below to the table, you will see the curve will be auto-modified. We will copy some data to cell B10.

You will see the result. We have changed the chart title to the modified chart.

How to Change Chart Data Range in Excel


Method 5 – Using Formulas 

Steps:

  • From the Formulas ribbon >>  go to Name Manager.

A new dialog box named Name Manager will appear.

  • Click on New to that box.

How to Change Chart Data Range in Excel

You will see another dialog box named New Name.

  • Enter the name ChartName in the Name box to call the Name column.
  • Select your worksheet in the Scope box. My worksheet is Formulas.
  • Enter the following formula in the Refers to box:
=OFFSET(Formulas!$B$5,,,COUNTIF(Formulas!$B$5:$B$100,”<>”))
  • Press OK.

How to Change Chart Data Range in Excel

Formula Breakdown

  • COUNTIF will count the number of cells for a range that meets a given criterion.
    • COUNTIF(Formulas!$B$5:$B$100,”<>”)—> will count all the valued cells from B5 to B100 and will skip the duplicate values. This will count here 7.
  • Formulas!$B$5—> is the reference here.
  • OFFSET will return some values from a reference range.
    • OFFSET(Formulas!$B$5,,,7)—> This will call your 7 data from the cell

The Name Manager dialog box will appear.

  • Choose New.

You need to do the same thing according to your data in the chart.

  • Enter the name ChartSales in the Name box to call the Sales column.
  • Select your worksheet in the Scope box. My worksheet is Formulas.
  • Enter the following formula in the Refers to box:
=OFFSET(Formulas!$C$5,,,COUNTIF(Formulas!$C$5:$C$100,”<>”))
  • Press OK.

How to Change Chart Data Range in Excel

Formula Breakdown

  • COUNTIF will count the number of cells for a range that meets a given criterion.
    • COUNTIF(Formulas!$C$5:$C$100,”<>”)—> will count all the valued cells from C5 to C100. This will count here 7.
  • Formulas!$C$5—> is the reference here.
  • OFFSET will return some values from a reference range.
    • OFFSET(Formulas!$C$5,,,7)—> This will call your 7 data from the cell.
  • Close your Name Manager dialog box.

  • Choose any cell. We have chosen Cell B11.
  • Go to the Insert tab.
  • From 2-D Line >> choose Line with Markers.

How to Change Chart Data Range in Excel

You can see the following blank box.

  • Select the Blank Chart.
  • From the Chart Design tab >> go to Select Data ribbon.

A dialog box of Select Data Source will appear.

  • Select Add from the following box.

How to Change Chart Data Range in Excel

Another dialog box will appear.

  • You must mention the worksheet in the Series values. We have mentioned the worksheet Formulas.

  • Call your data by entering the following:
=Formulas!ChartSales

This formula will call you data. The column header is Sales.

  • Click on OK to get the changes.

The previous dialog box of Select Data Source will appear.

  • Click on the Edit option to change the Axis Labels.

How to Change Chart Data Range in Excel

  • Enter the following formula in the Axis label range:
=Formulas!ChartName

This formula will call you data. The column header is Name.

  • Click on OK.

  • Press OK on the Select Data Source box.

How to Change Chart Data Range in Excel

You will see the following line chart.

If you add any value to your data range by copying or writing it down, you will see the changes in the chart automatically.

We have included two more pieces of information B10:C11.

How to Change Chart Data Range in Excel

The following is the final result in which I have introduced the Chart title.

Read More: How to Change Chart Data Range Automatically in Excel


Things to Remember

  • If you change any data used in the chart, then the chart will be auto-updated.
  • Furthermore, using the Mouse Pointer method is the easiest method.
  • Moreover, using a table for the chart is the best option.

Practice Section

Now, you can practice the explained method by yourself.

How to Change Chart Data Range in Excel


Download the Practice Workbook

You can download the practice workbook from here:


Related Articles


<< Go Back to Edit Chart Data | Excel Chart DataExcel Charts | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Musiha Mahfuza Mukta
Musiha Mahfuza Mukta

Musiha Mahfuza Mukta is a marine engineer who loves exploring Excel and VBA programming. To her, programming is a time-saving tool for dealing with data, files, and the internet. She's skilled in Rhino3D, Maxsurf, C++, MS Office, AutoCAD, and Excel & VBA, going beyond the basics. With a B.Sc in Naval Architecture & Marine Engineering from BUET, she's shifted gears and now works as a content developer. In this role, she creates techy content exclusively focused on Excel... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo