简体   繁体   English

EXCEL:需要在另一个工作表的单元格范围内查找值,并从相邻单元格返回值

[英]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.

相关问题 将值从工作表中的单元格复制到一系列单元格中 - Copy the value from a cell in a worksheet into a range of cells Excel使用一系列单元格返回与相邻单元格对应的值 - Excel using a range of cells to return value corresponding to an adjacent cell Excel函数帮助 - 将工作表中的2个单元格与另一个工作表中的2个单元格进行比较,如果它们匹配,则从其他列返回值 - Excel Function Help - Compare 2 Cells in Worksheet to 2 Cells in another worksheet, if they match, return value from a different column 在工作表中搜索单元格值,然后将相邻单元格复制到变量范围中 - Search a worksheet for a cell value, then copy the adjacent cells into a variable range Excel从搜索值在单元格内的范围中查找单元格 - Excel find cells from range where search value is within the cell (Excel)在引用其他工作表中的单元格时,是否可以将工作表名称作为单元格值传递? - (Excel) When referencing cells from another worksheet, can I pass the worksheet name as a cell value? 擅长:在列中查找值,其中单元格包含多个用逗号分隔的值,并从相邻列返回值 - excel: Find value in column where cells contain multiple values separated by commas and return value from an adjacent column excel-我需要从a列匹配be列的值,并在与b列相邻的单元格中返回一个值 - excel - i need to take a value from column a match to column be and return a value in a cell adjacent to column b 从多个列中查找最大值并从相邻列中返回单元格值-Excel - Find max value from multiple columns and return cell value from adjacent column - Excel VBA如何匹配单元格与相邻单元格的范围和返回值? - vba how to match cell with range and return value in adjacent cells?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM