简体   繁体   English

如何从单元格值引用另一个工作表上的单元格

[英]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. 对于动物名称,将腿数改为23

怎么样:

=VLOOKUP(A1,Sheet1!A1:C3,2)

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

相关问题 如何引用另一个工作表中的单元格? - How to reference a cell from another sheet? 从单元格引用更改的另一张工作表中获取值 - Fetch value from another sheet where the cell reference changes 当工作表名称是单元格的值时,如何引用另一个工作表的单元格? - How to make a reference to a cell of another sheet, when the sheet name is the value of a cell? 如何有条件地用另一个工作表中另一个单元格值的另一个单元格信息替换excel中的单元格信息 - How to replace cell info in excel conditionaly with another cell info from another sheet regarding to another cell value 如何从Module-Excel VBA中的另一个工作表引用单元格? - How to reference cell from another sheet in Module - Excel VBA? 使用另一个工作表中的单元格作为参考 - using a cell from another sheet as reference 使用来自另一个工作表的连接引用更新单元格 - updating a cell with a concatenated reference from another sheet 引用另一个单元格(VBA)的单元格值 - Reference a Cell value from another Cell (VBA) 如何根据单元格中的值动态引用另一张工作表中的3列中的值? - How can I reference values dynamically from 3 columns in another sheet based on a value in cell? Openpyxl - 如何引用另一张纸上的单元格 - Openpyxl - How to reference cell on another sheet
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM