Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 331
Default Vlookup Table Help

Revisiting an eariler issue.

I have an excel document that looks like what I've shown below, in Sheet 1
Column A Column B Column C Column D
1 Origin Airport Destination Airport City Name Airline
2 ABE
3 ABQ
4 ACE
5 ABI

I am trying to create a Vlookup table that will decode the origin airport
code in Col A and display the decoded code with the city name in Column D.

In Sheet 2, my table array I have created looks like this.

Column A Column B
1 Airport Codes City Code
2 ABE Abilene, TX, USA Municipal
3 ABQ Albuquerque, NM, USA Albuquerque International Airport
4 ACE Lanzarote, Canary Islands, Spain Lanzarote
5 ABI Abilene, TX, USA Municipal

The formula I'm using is =VLOOKUP(A2,'AIRPORT CODES'!$A$2:$B$2989,2,1)
and I'm getting the wrong answer, ( Albacete, Spain Albacete Airport) when
the answer should be Allentown Bethlehem.

How do I correct this?
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 331
Default Vlookup Table Help

Sorry, in my sentence where I state the answer should be Allentown Bethlehem,
should actually be Abilene, TX, USA Municipal.

This has been a thorn in my side issue all day.



"Greg" wrote:

Revisiting an eariler issue.

I have an excel document that looks like what I've shown below, in Sheet 1
Column A Column B Column C Column D
1 Origin Airport Destination Airport City Name Airline
2 ABE
3 ABQ
4 ACE
5 ABI

I am trying to create a Vlookup table that will decode the origin airport
code in Col A and display the decoded code with the city name in Column D.

In Sheet 2, my table array I have created looks like this.

Column A Column B
1 Airport Codes City Code
2 ABE Abilene, TX, USA Municipal
3 ABQ Albuquerque, NM, USA Albuquerque International Airport
4 ACE Lanzarote, Canary Islands, Spain Lanzarote
5 ABI Abilene, TX, USA Municipal

The formula I'm using is =VLOOKUP(A2,'AIRPORT CODES'!$A$2:$B$2989,2,1)
and I'm getting the wrong answer, ( Albacete, Spain Albacete Airport) when
the answer should be Allentown Bethlehem.

How do I correct this?

  #3   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Vlookup Table Help

Think all that's needed is to make it search for an exact match:
=VLOOKUP(A2,'AIRPORT CODES'!$A$2:$B$2989,2,0)
(use 0 as the 4th param, instead of 1)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

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 table Joe Excel Discussion (Misc queries) 3 January 23rd 08 07:32 PM
Table with VLOOKUP? Tatebana Excel Discussion (Misc queries) 5 February 1st 07 03:31 PM
Finding a vlookup table Purple Phil Excel Worksheet Functions 2 October 20th 06 07:35 PM
VLOOKUP - 3 Table Array tangomj Excel Worksheet Functions 1 August 1st 06 05:43 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 07:33 AM.

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"