[英]EXCEL: Need to find a value in a range of cells from another worksheet and return value from adjacent cell
I am trying to find the formula that will search in column A (of worksheet "ABC") to find a value matching G4 in worksheet "XYZ" Once that value is found, return the value of the cell adjacent (column B of "ABC") to the cell in which this formula exists in worksheet "XYZ". 我试图找到将在A列(工作表“ABC”)中搜索的公式,以在工作表“XYZ”中找到与G4匹配的值。找到该值后,返回相邻单元格的值(“ABC”的B列“)到工作表”XYZ“中存在该公式的单元格。 All sheets are in the same workbook. 所有工作表都在同一工作簿中。
Thank you so much! 非常感谢!
here's an example of what you're describing: 这是你所描述的一个例子:
In spreadsheet ABC, you have a reference value in column A and data in column B 在电子表格ABC中,您在A列中有一个参考值,在B列中有数据
In spreadsheet XYZ, you have a matching number in column A. You'd like to pair the data from spreadsheet ABC to the value in XYZ: 在电子表格XYZ中,您在A列中有匹配的数字。您希望将电子表格ABC中的数据与XYZ中的值配对:
If you notice the formula in the formula bar on the second picture, you'll see the vlookup formula to pull the data for this example. 如果您在第二张图片的公式栏中注意到公式,您将看到vlookup公式以提取此示例的数据。 I also added an apostrophe in front of the formula in cell B1 (image 2) to have it display the formula. 我还在单元格B1(图像2)中的公式前面添加了一个撇号,让它显示公式。 Note the formulas are slightly different since they point to different reference cells. 请注意,公式略有不同,因为它们指向不同的参考单元格。
Also, here's a great reference for how the vlookup function works: 另外,这里有一个关于vlookup函数如何工作的很好的参考:
http://chandoo.org/wp/2012/03/30/comprehensive-guide-excel-vlookup/ http://chandoo.org/wp/2012/03/30/comprehensive-guide-excel-vlookup/
Here is another solution that's closer to your adjusted question. 这是另一个与您调整后的问题更接近的解决方案。
This solution still uses the vlookup formula. 此解决方案仍使用vlookup公式。 Instead of using it to associate a value on multiple rows, you can look-up a single value. 您可以查找单个值,而不是使用它来关联多行上的值。 (same function, different application) (功能相同,应用不同)
Again, I'll point you to a great reference for how the vlookup function works: 再次,我将向您介绍vlookup函数如何工作的一个很好的参考:
http://chandoo.org/wp/2012/03/30/comprehensive-guide-excel-vlookup/ http://chandoo.org/wp/2012/03/30/comprehensive-guide-excel-vlookup/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.