简体   繁体   English

如何在 excel 中添加来自另一个单元格的单元格引用

[英]How to add a cell reference from another cell in excel

在此处输入图像描述

I would like to add cell reference in a formula from another cell of the current worksheet.我想在当前工作表的另一个单元格的公式中添加单元格引用。 In the above picture, I would like that "8" of "A8" should be referenced from "B4" of the "Sheet1" worksheet.在上图中,我希望“A8”的“8”应该从“Sheet1”工作表的“B4”中引用。 So if there would be "9" or "2" or whatever in "B4", that digit would be added with "A", so it would be "A9" or "A2" instead of "A8".因此,如果“B4”中有“9”或“2”或其他任何数字,则该数字将添加“A”,因此它将是“A9”或“A2”而不是“A8”。

How to write the formula to achieve that?如何编写公式来实现这一点?

Use indirect() function and pass arguments concatenate("A",cell value)使用间接() function 并通过 arguments 连接(“A”,单元格值)

=INDIRECT(CONCATENATE("A",B4),1)

在此处输入图像描述

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

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