简体   繁体   English

excel 2003:如何从单元格引用命名范围?

[英]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. 如果我有一个命名范围“ Range”,我想在公式中使用从单元格中检索到的名称进行引用。 So for example if in cell A1 I have the text 'Range'. 因此,例如,如果在单元格A1中我有文本“ Range”。 How would I use that in a vlookup formula as follows: 我将如何在vlookup公式中使用它,如下所示:

=VLOOKUP(A7,Range,7,FALSE)

If I try replacing Range with A1 i get a #name error. 如果我尝试将Range替换为A1,则会收到#name错误。

Try this one: 试试这个:

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

assuming your cell A1 contains text with name of named range: "Range" . 假设您的单元格A1包含名称范围为"Range"文本。

But note, that since INDIRECT is a volatile function , your formula would be recalculated each time any cell on the sheet changed 但是请注意,由于INDIRECT是一个易失函数 ,因此每次工作表上的任何单元格更改时,都会重新计算您的公式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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