Dynamic Range of Rows

Jeffrey Mahoney

Well-known Member
Joined
May 31, 2015
Messages
3,073
Office Version
  1. 365
Platform
  1. Windows
I'm trying to create a dynamic range by using the intersect of a range and a range of Rows. If I create this formula:
$A$6:$V$1000 6:20
I get a range of $A$6:$V$20 to work with

If I want to dynamically select the rows like this:
$A$6:$V$1000 6:Max(($A$6:$A$1000<>"")*row($A$6:$A$1000))
it won't let me create this formula

I know that Max(($A$6:$A$1000<>"")*row($A$6:$A$1000)) gives me the correct row number

I tried using the LET function to assign that to a variable, that's a no go also.

Is there a simple way to specify a range of rows dynamically?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
What exactly isn't working? -- In my test workbook, I have created a name that refers to
Excel Formula:
=Sheet1!$A$6:$V$1000 INDIRECT("Sheet1!6:"&MAX((Sheet1!$A$6:$A$1000<>"")*ROW(Sheet1!$A$6:$A$1000)))
and it works OK inside, say, INDEX().
 
Upvote 0
Tetra, I have other dependent named ranges that are actually the issue. Once the main table has been established I have select columns that I need to reference, so I use the Intersect method to create those, such as:
=MasterDataTable $A:$A

For some reason those get #VALUE inside of formulas until I change back to not using Indirect in the main table
 
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,790
Members
451,589
Latest member
Harold14

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