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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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