1
Contextualization
I am trying to create a drop-down list for cells in the Model column, which depends on the corresponding cell value in the Manufacturer column.
The above table is in the tab Plan2
In the file there is a tab with the manufacturer and model interface
The above table is in the tab Plan1
From the manufacturers and models tab, I created the named ranges below:
Problem
I am validating the cells in the Model column (Plan2 tab) as follows:
The reference A2, in the above case, will have the value "Fiat", which is one of the named ranges of the spreadsheet.
When I do it that way, the suspended list doesn’t get any value. However, if I set a named static range by selecting the models below the manufacturer and naming the selected range, the dropdown list is filled in perfectly.
I already checked if the formula with DESLOC is referencing the correct range and everything is OK.
I came to the following conclusion: the INDIRECT formula does not force the calculation of the function defining the named interval, in this case the DESLOC function. I realized this when performing a test to assemble a drop-down list with the names of the columns of the table below:
The function I used was INDIRECT("Test")
When auditing the formula by clicking on the formula bar and pressing CRTL + SHIFT + ENTER (this is a matrix function), the INDIRECT function with the Static Test returned me the correct value vector, while with the Dynamic Test, returned me #REF, that is, there was some error.
Excellent question!
– Evert