Thread: IF THEN
View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default IF THEN

On the Lov worksheet, add another column (a new column B???).

Then would look like:

--A---- ----B--------
USA North America
Canada North America
Spain Europe
Japan Asia

Then you could use this kind of formula:

=vlookup(b5,lov!a:b,2,false)

to return the continent for that country.



PAL wrote:

I have two worksheets. The first one is a list of countries (~25 countries;
LOV!A1:A25) down one column.

The second one is a a multi-column, multi-row list, with one of the columns
being country. I have inserted a another column in order to create regions
for each row.

Example:
If B5=USA, I want it to return, "North America"...
If B5=Canada, I want it to return, "North America"
If B5=Spain, I want it to return, "Europe"
IF B6=Japa, I want it to return, "Asia"

Seems like this is a complex if, but not able figure it out.


--

Dave Peterson