Dynamic Validation Range

izzy

Board Regular
Joined
Jun 12, 2003
Messages
165
I'm using a List type Data Validation with A48:A20,000 as my range. Data is only present in maybe 10,000 rows but grows constantly. Is there a way I can make my range dynamic? Such as using an xlUP OnWorkBookOpen() and grabbing that address somehow?

End result would be range = A48:A10,000
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
izzy said:
I'm using a Validation list with A48:A20000 as my range. Data is only present in maybe 10,000 rows but grows constantly. Is there a way I can make my range dynamic? Such as using an xlUP OnWorkBookOpen() and grabbing that address somehow?

Why no define a name by means of a dynamic formula? If interested, please state what kind of data you have from A48 on and the name of the sheet of interest.
 
Upvote 0
Hey great idea. I know i've seen dynamic range naming in the archives somewheres. Thanks Aladin.

A:A contains part numbers with leading zeros so it's all formated as text. No blanks.
Sheet1 (DataBase)
 
Upvote 0
izzy said:
Hey great idea. I know i've seen dynamic range naming in the archives somewheres. Thanks Aladin.

A:A contains part numbers with leading zeros so it's all formated as text. No blanks.
Sheet1 (DataBase)

Activate Insert|Name|Define.
Enter BigStr as name in the Names in Workbook box.
Enter the following in the Refers to box:

=REPT("z",255)

Click Add.

Enter DB as name in the Names in Workbook box.
Enter the following in the Refers to box:

=Sheet1!$A$48:INDEX(Sheet1!$A:$A,MATCH(BigStr,Sheet1!$A:$A))

Click OK.

Now you can use DB as source in a cell that you want to data validate and in formulas.
 
Upvote 0

Forum statistics

Threads
1,215,447
Messages
6,124,907
Members
449,195
Latest member
Stevenciu

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