Chart that Auto Updates with a Dynamic Range of only the last 30 observations

bthome0826

New Member
Joined
Oct 7, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I'm looking to create a line chart that automatically updates when a new row of data is entered, but I only want the line chart to display the last 30 data points from the column titled "Error (Bias)"

Is this possible to create using Excel? I am using a Windows PC and Excel 365.
 

Attachments

  • Dataset.JPG
    Dataset.JPG
    152.3 KB · Views: 11

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
You can if you work with named ranges.

Go on the main ribbon to FORMULAS, and then NAME MANAGER. On the pop-up menu select NEW.

Type in a name for the range, without spaces. For instance "DataForGraph1".

In the refers to box, type the following formula:
=INDIRECT("'Sheet3'!$A$"&COUNTA(Sheet3!$A:$A)-29&":$A$"&COUNTA(Sheet3!$A:$A))

This assumes your data is in Sheet3, column A... so you will need to change that yourself.
Also, note that the formula begins with an quotation mark (") and an apostrophe (')!

Now create a new graph.
Click on ADD to create a new range, and instead of selecting a range of data, type the name of the workbook plus the named range you just created seperated by an exclamation mark. For instance:
=Book2.xlsx!DataForGraph1

Lastly, this assumes there are no empty cells in your data range!
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top