Formula for (country in region)

bell1958

New Member
Joined
May 31, 2017
Messages
4
I build a master table of countries with all of the corresponding regions and then I build a VLOOKUP to retrieve the values which is working great. I'm having a problem where multiple countries are listed in a cell where I have the region as "multiple region" since it's more that one country. In the master table how do I list the countries for that one cell where I have the region as "multiple region"?

The 1st screenshot master spread sheet with the data where you can see it auto filled in the region with single countries listed but for Indonesia, Kenya it has #N/A. The 2nd screen shot is the master table countries and corresponding regions. In the master table where it's highlighted in yellow opposite Multi-Region how do I set up the countries so it can auto fill "Multi-Region instead of #N/A in the master spread sheet?

Formula for (country in region) - Album on Imgur
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi and welcome to the forum,
One way is to treat the items that have more than one region as an error, something like this:-

Code:
=IFERROR(VLOOKUP(A3,$A$16:$B$19,2,FALSE),"Multi-Region")

They may be a better way to do this and hopefully someone else will suggest a better way.

HTH

Paul.
 
Upvote 0

Forum statistics

Threads
1,217,367
Messages
6,136,148
Members
449,994
Latest member
Rocky Mountain High

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