Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default VLOOKUP problem

I have a formula
=IF(ISERROR(VLOOKUP(A1,region,2)), "Unknown", VLOOKUP(A1,region,2))
Value of A1 is 'REPOFSERBIA'

Output of the formula gives me 'Northern Europe' instaed of 'Southern
Europe' . Looks like Country 'Qatar' is causing problem.
What's the problem with formula ?

Region is defined as
Country
Region

REPOFSERBIA
Southern Europe

ALGERIA
Africa

ARGENTINA
Latin America

AUSTRALIA
Pacific

AUSTRIA
Northern Europe

BANGLADESH
Northern Europe

BELGIUM
Southern Europe

BRAZIL
Latin America

CANADA
Canada

CHINA
FarEast

COLOMBIA
Latin America

COSTA RICA
Latin America

CZECH REPUBLIC
Northern Europe

DENMARK
Northern Europe

EGYPT
Africa

ENGLAND
Northern Europe

FINLAND
Northern Europe

FRANCE
Southern Europe

GERMANY
Northern Europe

GREECE
Southern Europe

GUATEMALA
Latin America

HONG KONG
FarEast

INDIA
Northern Europe

INDONESIA
FarEast

IRELAND
Northern Europe

ISRAEL
Northern Europe

ITALY
Southern Europe

JAPAN
FarEast

JORDAN
Northern Europe

KOREA
FarEast

KUWAIT
Northern Europe

MALTA
Southern Europe

MEXICO
Latin America

MEXICO
Latin America

MICRONESIA
Pacific

NETHERLANDS
Northern Europe

NEW ZEALAND
Pacific

NIGERIA
Africa

NORWAY
Northern Europe

OMAN
Northern Europe

PAKISTAN
Northern Europe

PANAMA
Latin America

PHILIPPINES
Northern Europe

POLAND
Northern Europe

PORTUGAL
Southern Europe

PUERTO RICO
Latin America

QATAR
Northern Europe

ROMANIA
Northern Europe

Russia
Southern Europe

SAUDI ARABIA
Asia

SINGAPORE
FarEast

SLOVENIA
Northern Europe

SOUTH AFRICA
Africa

SPAIN
Southern Europe

Sri Lanka
Asia

SWEDEN
Northern Europe

SWITZERLAND
Northern Europe

SYRIA
Asia

TAIWAN
FarEast

THAILAND
FarEast

THE NETHERLANDS
Northern Europe

TRINIDAD
Latin America

TURKEY
Asia

UNITED ARAB EMI
Asia

United Kingdom
Northern Europe

United States
Local

USA
Local

VENEZUELA
Latin America

VIRGIN ISLANDS
Latin America

YUGOSLAVIA
Northern Europe



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default VLOOKUP problem

You're probably trying to do an EXACT lookup..
in which case you need to set the 4th argument of the VLOOKUP function to
0 or false... you've left it out and then it defaults to true...



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Shashi Bhosale" wrote:


I have a formula
=IF(ISERROR(VLOOKUP(A1,region,2)), "Unknown", VLOOKUP(A1,region,2))
Value of A1 is 'REPOFSERBIA'

Output of the formula gives me 'Northern Europe' instaed of 'Southern
Europe' . Looks like Country 'Qatar' is causing problem.
What's the problem with formula ?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP problem Jon Excel Discussion (Misc queries) 3 January 4th 10 04:35 PM
Vlookup problem Bruister via OfficeKB.com Excel Discussion (Misc queries) 0 October 16th 09 09:29 AM
VLOOKUP problem Tom Excel Discussion (Misc queries) 11 March 4th 09 07:11 PM
vlookup problem Fellow Wanderer Excel Discussion (Misc queries) 5 October 3rd 08 06:37 PM
vlookup problem Jeanette Excel Worksheet Functions 4 February 14th 07 07:18 PM


All times are GMT +1. The time now is 12:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"