Contextualization
I am trying to create a drop-down list for cells in the Model column, which depends on the value of the corresponding cell in the Manufacturer column.
TheabovetableisonthePlan2tab
Inthefilethereisatabwiththerelationofmanufacturerandmodel
TheabovetableisonthePlan1tab
FromtheManufacturersandTemplatestab,I'vecreatedthenamedrangesbelow:
Problem
I'mdoingvalidationforcellsintheModelcolumn(Plan2tab)asfollows:
ReferenceA2,intheabovecase,willhavethevalue"Fiat", which is one of the named ranges of the worksheet.
When I do this, the drop-down list has no value. However, if I define a static named range by selecting the templates below the manufacturer and naming the selected range, the drop-down list fills in perfectly.
I've 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 that defines the named range, in this case the OFFSET function. I realized this by performing a test to build a dropdown list with the column names in the table below:
ThefunctionIusedwasINDIRECT("Test")
When you audit the formula, clicking on the formula bar and pressing CRTL + SHIFT + ENTER (this is a matrix function), the INDIRECT function with the Static Test returned the correct value vector, whereas with the Test dynamic, returned me #REF, ie there was some error.