INDEX, INDIRECT, etc...

essjee

New Member
Joined
Feb 9, 2018
Messages
6
Greetings, hive! Here's one for you.

Parameters thus far:

- Cell C5 has data validation applied for a drop-down list which points to a named table
Code:
 =INDIRECT("Ensembles")

- Every list item in "Ensembles" also serves as the name for one of 24 other named tables, for further INDIRECT, as described below

My aim:

#1 - When an item is chosen in C5, corresponding named table is automatically fed to cells A16:C61 as required. (Each table has 3 columns; varying number of rows.)

#2 - Some tables may have blank rows; once data is populated to area described above, would like to be able to clean up the blank rows via cut/paste cells.

#3 - After all that, I'd like to preserve the auto-feed functionality. (i.e. Select a different item in C5, and new table displays; select the same item in C5, and table is re-generated with any blank rows that may exist.)

What I've got in place right now:

Cells A16:A61
Code:
 =IFERROR(INDEX(INDIRECT($C$5),ROW()-15,1),"")

Cells B16:B61
Code:
 =IFERROR(INDEX(INDIRECT($C$5),ROW()-15,2),"")

Cells C16:C61
Code:
 =IFERROR(INDEX(INDIRECT($C$5),ROW()-15,3),"")

This is close, but of course it doesn't allow for point #2 above. Hoping there's a simple tweak that will fix things up as needed.


Thanks for any time and help you're willing to spare!
Shawn
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,215,006
Messages
6,122,666
Members
449,091
Latest member
peppernaut

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