You can't use INDIRECT with a dynamic named range like that. It will only work with a fixed range/address.
Unless the value in Quote!$O... is a string of cell reference (e.g. A1), INDIRECT will lack a valid cell reference.
Is it the cell value in Quote!$O you are looking for? Then "=fMMBUAR" should work.
What did you test? =INDIRECT("fMMBUAR")?
20210414 Indirect of a range name containing Index.xlsx | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | N | O | P | ||||||||||||||
1 | retrieving this value indirectly ----> | 10 | Column used in index function | |||||||||||||||
2 | Test using a range name "RetrieveThis" in the Instead of a cell reference ----> | 20 | ||||||||||||||||
3 | ||||||||||||||||||
4 | ||||||||||||||||||
5 | Basic formula | 10 | B1 | |||||||||||||||
6 | Moved Index part to a range name | 20 | RetrieveThis | |||||||||||||||
7 | Moved Index part to a range name and ref Quote sheet | 20 | ||||||||||||||||
8 | ||||||||||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B5 | B5 | =INDIRECT(INDEX($O:$O,ROW(),0)) |
B6 | B6 | =INDIRECT(fMMBUAR) |
B7 | B7 | =INDIRECT(fMMBUAR_Quote) |
Named Ranges | ||
---|---|---|
Name | Refers To | Cells |
fMMBUAR | =INDEX(Sheet1!$O:$O,ROW(),0) | B5:B6 |
20210414 Indirect of a range name containing Index.xlsx | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | N | O | P | |||||||||||||||
1 | Column used in index function | |||||||||||||||||
2 | ||||||||||||||||||
3 | ||||||||||||||||||
4 | ||||||||||||||||||
5 | ||||||||||||||||||
6 | ||||||||||||||||||
7 | RetrieveThis | |||||||||||||||||
8 | ||||||||||||||||||
Quote |
I assume there are other customized ranges and you'd like to invoke them by typing in B1?I have a table with several things to lookup. In this table, could one cell have the value "fMMBUAR".
fMMBUAR is created as a named range, in below example A5:A7 (Dynamic).
In C5:C7 (dynamic) I would like to retrieve the value of the correspondent row in column A.
It is important, that the lookup "name" is picked from the lookup table.
Maybe Indirect isn't the proper way to do so, in this case I'm looking for other suggestions.
View attachment 36660
/Skovgaard
=CHOOSE(MATCH(B1,{"fMMBUAR","AA","BB"},0),fMMBUAR,2,3)