Matching 3 columns and looking up values

indygo

Board Regular
Joined
Dec 2, 2013
Messages
126
Office Version
  1. 365
Platform
  1. Windows
hi experts!

I have two tables in two separate sheets. I need to Match and lookup outcome from Sheet 1 to Sheet 2.



[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Name1[/TD]
[TD]Name2[/TD]
[TD][/TD]
[TD]Outcome[/TD]
[TD]Outcome[/TD]
[/TR]
[TR]
[TD]21/09/17[/TD]
[TD]Adam[/TD]
[TD]Maria[/TD]
[TD][/TD]
[TD]W[/TD]
[TD]L[/TD]
[/TR]
[TR]
[TD]20/09/17[/TD]
[TD]Donald[/TD]
[TD]Michelle[/TD]
[TD][/TD]
[TD]L[/TD]
[TD]W[/TD]
[/TR]
[TR]
[TD]19/09/17[/TD]
[TD]Kate[/TD]
[TD]Bob[/TD]
[TD][/TD]
[TD]N/A[/TD]
[TD]N/A[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

In different sheet I have similar table but without outcomes. I would like to match Date+name1+name2 and then copy outcome for each match.

[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Name1[/TD]
[TD]Name2[/TD]
[TD]Outcome[/TD]
[TD]Outcome[/TD]
[/TR]
[TR]
[TD]19/09/17[/TD]
[TD]Kate[/TD]
[TD]Bob[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]21/09/17[/TD]
[TD]Adam[/TD]
[TD]Maria[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]20/09/17[/TD]
[TD]Donald[/TD]
[TD]Michelle[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


If there is no score (n/a) it should leave cell empty. I know it's a combination of Index and Match and Vlookup but I got lost. Can we assume that both tables start in A1 in two sheets called Sheet1 and Sheet2 ? Thank you
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Multi VLOOKUP can help you here:


Book1
ABCDE
1DateName1Name2OutcomeOutcome
221/09/2017AdamMariaWL
320/09/2017DonaldMichelleLW
419/09/2017KateBobN/AN/A
Sheet1



Book1
ABCDE
1DateName1Name2OutcomeOutcome
219/09/2017KateBobN/AN/A
321/09/2017AdamMariaWL
420/09/2017DonaldMichelleLW
Sheet2
Cell Formulas
RangeFormula
D2{=IFERROR(VLOOKUP($A2&$B2&$C2,CHOOSE({1,2},Sheet1!$A$2:$A$4&Sheet1!$B$2:$B$4&Sheet1!$C$2:$C$4,Sheet1!D$2:D$4),2,0),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.


Copy formula in D2 across and down.

WBD
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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