Compare two columns in two worksheets and return data from another column

SRA122

New Member
Joined
May 8, 2014
Messages
1
I have two worksheets and I am wanting to compare two columns (one from each worksheet). If there is a match, I want to pull the data from the matching row
but from a different column.

Example:

1st worksheet

A B C
xyz 123
abc 456
dfg 788


2nd worksheet

A B C
123 ddd apple
999 ccc orange
888 eee peach
456 xxx plum
777 yyyy pear
788 bbb banana

Result I am looking for in 1st worksheet Column C:

A B C
xyz 123 apple
abc 456 plum
dfg 788 banana

Thanks!
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Assuming headers in row 1, enter in C2 and copy down:
Code:
=VLOOKUP(B2,Sheet2!$A$2:$C$7,3,0)
 
Upvote 0

Forum statistics

Threads
1,216,030
Messages
6,128,405
Members
449,448
Latest member
Andrew Slatter

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top