View Single Post
  #2  
Old March 15th, 2011, 11:21 PM
tarquinious tarquinious is offline
Experienced Member
 
First recorded activity by OfficeFrustration: Mar 2011
Posts: 34
Default

Quote:
Originally Posted by thefreckles View Post
Hi! I have two sheets in a workbook. In Sheet 1 I need to match the data in Column G plus the data in Column F to the data in Column C in Sheet 2. Any matches then need to return the data that is in Column A on Sheet 2 to Column J on Sheet 1.
Hey there theFreckles!

On the worksheet with the IDs in it, you will need to swap the name and ID columns over. The formula below relies on the name being in column A and IDs in column B. You can do this by highlighting all of column A by clicking on the A at the top, then clicking and holding the black border, and whilst holding down the Shift button, drag it to the right of the IDs.

Next to the first set of names in the first worksheet, type in:
=VLOOKUP(G2 & ", " & F2,Sheet2!A:B,2,FALSE)
...where "Sheet2" is the name of the worksheet with IDs on it

Copy and paste this down for each set of names and where IDs exist you will get the ID returned, where the name combo can't be found, you'll get a "#N/A" error.

Give it a crack and let me know if it does what you're after.