Dynamic Range using last value in array formula

NicholasP

Active Member
Joined
Nov 18, 2006
Messages
291
I have a formula I'm trying to modify without using VB...

Code:
=IFERROR(LINEST(Output!D210:D245,Output!E210:O245,TRUE,TRUE),"")

The idea is that D245 is the last row in a data set and D210 is the previous 36 months. Is this possible to make dynamic without VB?

Any help would be greatly appreciated.

Thanks
Nick
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Instead of D210:D245 try INDEX(D:D,match(9.9999e307,D:D)):INDEX(D:D,match(9.9999e307,D:D)-35)
Same with the E column
(and supposing there is nothing else in col D and E after the last row you need to reference)
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,955
Members
449,199
Latest member
Riley Johnson

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