INDIRECT function for dependent validation lists from another workbook

thewiseguy

Well-known Member
Joined
May 23, 2005
Messages
954
Office Version
  1. 365
Platform
  1. Windows
Hello all -

I currently use the following setup:

Cell A1 can have any one of the following values: arealight, wallpack,highbay,wrap

Cell B1 contains a validation list which equals =indirect(A1)

This function serves to look up the values i want to select from, so if i want to look at all "Arealight' options then i select arealight and the validation list will give me a list of all them.


Now what if these lists are in another workbook. Is there a way to use this indirect function in the same manner? I can't point the formula to a specific range b/c it is dynamic (i.e the list i need can change from arealight, wallpack, highbay, wrap).

Any help is greatly appreciated!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
You will have to use names from other workbook with workbook name.

Names in open Book2 and the following validation list is in another workbook.

1624132399968.png



For further information, please read this article.


Kind regards

Saba
 
Upvote 0
You will have to use names from other workbook with workbook name.

Names in open Book2 and the following validation list is in another workbook.

View attachment 41169


For further information, please read this article.


Kind regards

Saba
 
Upvote 0
thanks for this. Unfortunately, this does not allow which list I want the results of to change.

Again...which list I view is dynamic so if i point to a specific range, it's always going to give me the same list. I was hoping to use the indirect function to help choose which list I want to view.
 
Upvote 0
Maybe this will work 4 u?

ex-285 - WYSZUKAJ.PIONOWO - kilka kryteriów - tablicowa z JEŻELI.xlsx
ABCDEFGH
1
2Choose Sheet:wrapSheet NamesSheet NamesSheet Names
3Table namewrapSheet4Sheet4Sheet4
4File extension.xlsxSheet5Sheet5Sheet5
5file LocationC:\Users\rjpop\Desktop\Folder\Sheet6Sheet6Sheet6
6display Type:ALL Table
7Column NameSheet Names
8
9
10[[#All]]Sheet NamesColumn1Column2
11Sheet400
12Sheet500
13Sheet600
14
15
16Example_on_how_to_spill_whole_Table_Or_column
17Sheet NamescolumnData Body RangeAll table with headersJust 1 column
18Sheet59sheet62Sheet59sheet62Sheet NamescolumnSheet Names
19Sheet60sheet63Sheet60sheet63Sheet59sheet62Sheet59
20Sheet61sheet64Sheet61sheet64Sheet60sheet63Sheet60
21Sheet61sheet64Sheet61
22
Sheet5
Cell Formulas
RangeFormula
C2:C5C2=INDIRECT("'"&B5&B2&B4&"'!"&B3&"[[#All];[Sheet Names]]")
D2:E5D2='C:\Users\rjpop\Desktop\Folder\wrap.xlsx'!wrap[[#All],[Sheet Names]]
B10B10=SWITCH(B6,"ALL Table","[[#All]]","Data Body Range","","Just 1 column","[[#All];["&B7&"]]")
C10:E13C10=INDIRECT("'"&B5&B2&B4&"'!"&B3&SWITCH(B6,"ALL Table","[[#All]]","Data Body Range","","Just 1 column","[[#All];["&B7&"]]"))
C18:D20C18=ExampleTable
E18:F21E18=ExampleTable[#All]
G18:G21G18=ExampleTable[[#All],[Sheet Names]]
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
B2:B3Listarealight;wallpack;highbay;wrap
B6ListALL Table;Data Body Range;Just 1 column
B7ListSheet Names;Column1;Column2


BTW Can I attach proper workbook here?
 
Upvote 0

Forum statistics

Threads
1,213,565
Messages
6,114,338
Members
448,570
Latest member
rik81h

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