简体   繁体   English

使用字符串的Excel单元格引用

[英]Excel cell reference using a string

In an Excel worksheet I have a VLookup. 在Excel工作表中,我有一个VLookup。 On the VLookup it references data on another sheet. 在VLookup上,它引用另一张工作表上的数据。 For example, 例如,

VLOOKUP($B$3,'Inventory Sep'!$A$2:$C$255,3,FALSE)

Monthly I need to change the Inventory sheet to update it for example to Inventory Oct or Inventory Nov. 每月我需要更改库存表以将其更新为例如10月或11月的库存。

Rather than asking the user to update the VLOOKUP by editting the inventory sheet I would like to make the VLOOKUP reference a certain cell for example: 而不是要求用户通过编辑清单来更新VLOOKUP,我想使VLOOKUP引用特定的单元格,例如:

VLOOKUP($B$3,'Maintenance!A1'!$A$2:$C$255,3,FALSE)

Then the user would just have to go to the maintenance tab and update the A1 cell changing it from Inventory Sep to Inventory Oct 然后,用户只需转到维护选项卡并更新A1单元,即可将其从“ Inventory Sep更改为“ Inventory Oct

Is it possible to reference a cell that refers to a sheet in excel and how would I do it? 是否可以在Excel中引用引用工作表的单元格,我该怎么做?

正如FDavidov所说,只需使用INDIRECT()

=VLOOKUP($B$3,INDIRECT("'"&Maintenance!A1&"'!$A$2:$C$255"),3,FALSE)

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

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