简体   繁体   English

如何使用公式中的ID引用另一个Excel工作表中的单元格

[英]how to reference a cell in another excel worksheet using ID from a formula

Please help me to figure out how to reference a particular item in another tab (worksheet). 请帮助我找出如何在另一个标签(工作表)中引用特定项目。 I saw the reference with VBA, but I'm trying to see if this can be done with formula first. 我看到了VBA的参考,但是我想先看看是否可以使用公式来完成。 This will be a summary page, and I need to display values stored in the same location Q20 from all the sheets. 这将是一个摘要页面,我需要显示所有工作表中存储在相同位置Q20中的值。 I'm looking for something like: ='week03-Nov6'!Q25 我正在寻找类似的东西:='week03-Nov6'!Q25

so that I can copy it to the next cell to produce a series: ='week04-Nov13'!Q25 ='week05-Nov20'!Q25 这样我就可以将其复制到下一个单元格以生成一个序列:='week04-Nov13'!Q25 ='week05-Nov20'!Q25

I would like to replay the 'weekXX-DateXX' with some SHEET(ID). 我想用一些SHEET(ID)重播“ weekXX-DateXX”。 Is that possible without VBA? 没有VBA,这可能吗?

Please advise. 请指教。

You can use Indirect . 您可以使用Indirect Put this in A1, 放在A1

=INDIRECT("'week0"&B1&"-Nov"&C1&"'!A1")

Then, in B1 and C1, you can put 3 and 6 (respectively), and the formula will basically return Cell A1 from Week03-Nov6 sheet. 然后,在B1和C1中,您可以分别输入36 ,该公式基本上将从Week03-Nov6表返回单元格A1。

You can tweak/adjust/add as necessary. 您可以根据需要进行调整/调整/添加。 Let me know if you aren't able to get this working! 让我知道您是否无法正常工作!

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

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