Lookup with multiple input values and multiple results in one column

Riesenrind

New Member
Joined
Sep 18, 2012
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a master data set like this:

[TABLE="width: 500"]
<tbody>[TR]
[TD]Region
[/TD]
[TD]Country[/TD]
[/TR]
[TR]
[TD]EU[/TD]
[TD]France[/TD]
[/TR]
[TR]
[TD]EU[/TD]
[TD]Germany[/TD]
[/TR]
[TR]
[TD]LATAM[/TD]
[TD]Mexico
[/TD]
[/TR]
[TR]
[TD]LATAM[/TD]
[TD]Bolivia[/TD]
[/TR]
[TR]
[TD]LATAM[/TD]
[TD]Columbia[/TD]
[/TR]
[TR]
[TD]APAC[/TD]
[TD]China[/TD]
[/TR]
[TR]
[TD]APAC[/TD]
[TD]India[/TD]
[/TR]
[TR]
[TD]AFRICA[/TD]
[TD]Egypt[/TD]
[/TR]
[TR]
[TD]AFRICA[/TD]
[TD]Libya[/TD]
[/TR]
</tbody>[/TABLE]


Now, I have a second table with a subset of regions, and I need to populate a 2nd column with the countries in those regions

[TABLE="width: 300"]
<tbody>[TR]
[TD]Lookup input[/TD]
[TD]Lookup output which I need[/TD]
[/TR]
[TR]
[TD]Region[/TD]
[TD]Country[/TD]
[/TR]
[TR]
[TD]EU[/TD]
[TD]France[/TD]
[/TR]
[TR]
[TD]AFRICA[/TD]
[TD]Germany[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Egypt[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Libya[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Ideally, I am looking for a matrix formula, not a macro.

I have trawled this forum and can't find any solution.
Can you help?

Andrew
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,223,104
Messages
6,170,125
Members
452,303
Latest member
c4cstore

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