简体   繁体   English

关于谷歌表格中的单元格引用,需要澄清

[英]On cell referencing in google sheets, clarification needed

  • On sheet Summary , I have a cell A1 that has a value "AAPL"在工作表Summary上,我有一个单元格A1 ,其值为“AAPL”
  • On sheet AAPL , I have a cell X22 that has a value "123"在工作表AAPL上,我有一个值为“123”的单元格X22

In order for me to display "123", I do =AAPL!X22 .为了让我显示“123”,我做了=AAPL!X22 Pretty straightforward.很简单。

How can I rewrite this using A1 value?如何使用 A1 值重写它? In other words instead of hardcoding AAPL, I would like to express.. whatever is in A1 cell换句话说,我不想硬编码 AAPL,而是想表达.. A1 单元格中的任何内容

I tried我试过了

  • =&A1!X22 but this didn't work. =&A1!X22但这不起作用。

Thank you for your time感谢您的时间

Use INDIRECT .使用INDIRECT Enclose the !X22 in quotes and do not put quotes around the reference to the cell containing AAPL (in your question A1 , or in the comments D30 ):!X22括在引号中,不要在对包含AAPL的单元格的引用周围加上引号(在您的问题A1或评论中D30 ):

=INDIRECT(D30&"!X22")

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

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