EXCEL: Need to find a value in a range of cells from another worksheet and return value from adjacent cell

六月ゝ 毕业季﹏ 提交于 2019-12-10 19:55:51

问题


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". All sheets are in the same workbook.

Thank you so much!


回答1:


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

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:

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. I also added an apostrophe in front of the formula in cell B1 (image 2) to have it display the formula. 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:

http://chandoo.org/wp/2012/03/30/comprehensive-guide-excel-vlookup/




回答2:


Here is another solution that's closer to your adjusted question.

This solution still uses the vlookup formula. 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:

http://chandoo.org/wp/2012/03/30/comprehensive-guide-excel-vlookup/



来源:https://stackoverflow.com/questions/16308329/excel-need-to-find-a-value-in-a-range-of-cells-from-another-worksheet-and-retur

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!