Dynamic list

M0X3

New Member
Joined
Jun 16, 2021
Messages
41
Office Version
  1. 2016
Platform
  1. Windows
I'm trying to create a data validation list that dynamically adjusts based on the cell above it. The cell above will have the name of the tab that we want to get this list from, but the problem is the list has a different length in each tab. I know name manager and INDIRECT would help accessing the different tabs but how would I have the list increase or decrease in size dynamically? Would creating a table out of the list be enough?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi M0X3,

You could have each tab maintain the list length in a specific cell then retrieve using INDIRECT, or maybe you can COUNTA the size of the list.

Book1
HI
1Sheet2Sheet3
253
Sheet1
Cell Formulas
RangeFormula
H2:I2H2=COUNTA(INDIRECT("'"&H1&"'!$e$2:$e$999"))
 
Upvote 0
Solution
Hi M0X3,

You could have each tab maintain the list length in a specific cell then retrieve using INDIRECT, or maybe you can COUNTA the size of the list.

Book1
HI
1Sheet2Sheet3
253
Sheet1
Cell Formulas
RangeFormula
H2:I2H2=COUNTA(INDIRECT("'"&H1&"'!$e$2:$e$999"))
Brilliant! I have yet to test it out but this definitely seems like it'll work. Thanks :)
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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