Dynamic range for a chart

am003295

New Member
Joined
Apr 18, 2011
Messages
3
I have a dynamic range set up for a chart and it works good, what I want to do with this now is to make it so the range only selects the last 20 cells from the end of the range.
For example I am selecting out column L starting at row 21 up to a max of 489 rows (I will never get 489 rows filled in so that works for me), I now what to change my start from row 21 to whatever the max is -20, and I can not figure it out.
My dynamic range looks like this:
=OFFSET(Data!$L$21,0,0,COUNTA(Data!$L$21:$L$489))

any suggestions?
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Not tested, but try:

=OFFSET(Data!$L$21,COUNTA(Data!$L$21:$L$489)-20,20)
 
Upvote 0
That had no errors but gave me a blank chart

I was thinking of just replacing the first number 21 in the formula with the countA-20 formula that is there but that gives an error in formula

like:
=OFFSET(Data!$L$COUNTA(Data!$L$21:$L$489)-20,0,0,COUNTA(Data!$L$21:$L$489))

with your suggestion, when I look at the source data for the chart it takes me to cell # AF171 don't know why.
 
Last edited:
Upvote 0
=OFFSET(Data!$L$21,COUNTA(Data!$L$21:$L$489)-20,0,20)
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,544
Members
452,925
Latest member
duyvmex

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