简体   繁体   中英

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". 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

在此输入图像描述

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/

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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