简体   繁体   English

excel查找值和返回单元格引用

[英]excel lookup value and return cell reference

Hi I want to write a excel formula that can let me find a column of sheet 1 value from sheet 2, then return me the cell reference from sheet 2, 嗨,我想编写一个excel公式,该公式可以让我从工作表2中找到工作表1值的列,然后向我返回工作表2中的单元格引用

for example, the lookup values are in Column A in sheet1, the range is A1:AX131 in Sheet 2, 例如,查找值在工作表1的列A中,范围是工作表2的A1:AX131。

what formula I can use to return the sheet 2 cell reference? 我可以使用什么公式返回工作表2单元格引用?

Thanks, 谢谢,

The formula to return the cell reference is ADDRESS( row, column, [ref_type], [ref_style], [sheet_name] ) Source: http://www.techonthenet.com/excel/formulas/address.php 返回单元格引用的公式为ADDRESS( row, column, [ref_type], [ref_style], [sheet_name] )来源: http : //www.techonthenet.com/excel/formulas/address.php

As for searching an array, there is no specific formula to conduct an array lookup. 至于搜索数组,没有特定的公式可以进行数组查找。 If you can sort your information so that it is all in one column or row, you can use an index-match formula to find the cell you're looking for. 如果您可以对信息进行排序,使它们全部位于一列或一行中,则可以使用索引匹配公式来查找所需的单元格。 Google "index match" for examples. Google以“索引匹配”为例。

With using cell,index and match, this task could be done. 通过使用cell,index和match,可以完成此任务。

match(lookup_value, range0, 1) is to return the value where look_value is in range match(lookup_value,range0,1)将返回look_value在范围内的值
index(range1, match_return, col) is to return the reference where (match_return, col) is index(range1,match_return,col)将返回引用,其中(match_return,col)是
cell("address", index_return) is to return the address of the lookup, like $C$4 cell(“ address”,index_return)将返回查找的地址,例如$ C $ 4

in your example, it should be something like this: 在您的示例中,应该是这样的:

=Cell("address", Index(Sheet2!A1:X131, Match(lookup_value, sheet1!A1:A131,1), col)  

Note: 注意:

  • col is the index of column to get the value which is correponding to the lookup_value in column A col是要获取与列A中的lookup_value相对应的值的列的索引

  • set 3rd parm of Match depending on your needs 根据需要设置Match的第3个参数

take a look at https://exceljet.net/formula/get-address-of-lookup-result for more details 请查看https://exceljet.net/formula/get-address-of-lookup-result了解更多详细信息

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

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