Dynamic Graph Range

Nivvy

New Member
Joined
Dec 16, 2020
Messages
2
Office Version
  1. 2010
Platform
  1. Windows
I have a simple line graph of a column of data, something like: =Table!$C$1:$D$1500.

However, the data is added to regularly, so the upper limit needs to be dynamic (lower limit is fixed at C1).
I can use the COUNT function to calculate the upper limit, but have no idea how to use it for a dynamic range?
i.e. The count value, with any offset removed, I can put in say cell F3, so I need the graph range to be
something like:

=Table!$C$3:$D$(contents(F3)).

I've not found a way to do this, using a dynamic reference for the upper limit; any help very welcome.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hi Nivvy, welcome to MrExcel.

I would recommend to convert the data range on your worksheet to a table. Select your range (C1:D1500) > Ribbon > Home > Format as Table
The moment data is added in cell D1501 your graph will be updated automatically, ie the chart data range will change to =Table!$C$1:$D$1501.
 
Upvote 0
Hi Nivvy, welcome to MrExcel.

I would recommend to convert the data range on your worksheet to a table. Select your range (C1:D1500) > Ribbon > Home > Format as Table
The moment data is added in cell D1501 your graph will be updated automatically, ie the chart data range will change to =Table!$C$1:$D$1501.
Thany you. So simple!
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,426
Members
448,961
Latest member
nzskater

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