[英]How to reference cell on another sheet from cell value
I have an Excel sheet something like the following: 我有一个Excel表格,如下所示:
A B C
1 1 cat 4
2 2 dog 4
3 3 bird 2
On another sheet, I want to get the data for a row based on value in a cell, eg if A1 = 2 I want to display the name of the animal for row 2 on a particular cell (in this case, dog
) 在另一张表中,我想根据单元格中的值获取行的数据,例如,如果A1 = 2,我想在特定单元格(在本例中为dog
)中显示第2行的动物名称
I'm trying to use =INDIRECT("Sheet1!'"&A1"')
but it doesn't work. 我正在尝试使用=INDIRECT("Sheet1!'"&A1"')
但它不起作用。
I suspect you are using Excel on a Mac and are trying to match a number formatted as a number against a number formatted as text. 我怀疑你在Mac上使用Excel并试图将格式化为数字的数字与格式化为文本的数字进行匹配。 Try copying A1 from one sheet to the other, then: 尝试将A1从一张纸复制到另一张,然后:
=VLOOKUP(A1,Sheet1!A1:C3,2,FALSE)
for animal name and change 2
to 3
for number of legs. 对于动物名称,将腿数改为2
比3
。
怎么样:
=VLOOKUP(A1,Sheet1!A1:C3,2)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.