简体   繁体   中英

excel 2003: How can I reference a named range from a cell?

If I have a named range "Range" that I want to reference in a formula with the name retrieved from a cell. So for example if in cell A1 I have the text 'Range'. How would I use that in a vlookup formula as follows:

=VLOOKUP(A7,Range,7,FALSE)

If I try replacing Range with A1 i get a #name error.

Try this one:

=VLOOKUP(A7,INDIRECT(A1),7,FALSE)

assuming your cell A1 contains text with name of named range: "Range" .

But note, that since INDIRECT is a volatile function , your formula would be recalculated each time any cell on the sheet changed

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM