Relating two lists-Index? Lookup? Match?, Vlookup?

Marc Enzi

Board Regular
Joined
Dec 13, 2004
Messages
92
I have several very long lists with data that I am trying to use to create a comprehensive list.

Airports have both a 3 letter IATA code (International Airline Transport Association) they also have a 4 letter ICAO code (International Civil Aeronautics Association). So Chicago O'Hare has a 3 letter IATA Code ORD and an ICAO COde of KORD, Mexico City is MEX (IATA) and MMMX (ICAO).

I have one partial list (Sheet 1) of both codes, and another list (SHeet 2)of ICAO codes (but no IATA codes)

I want to take the sheet 1 and use it to populate the IATA code column on sheet 2.

Sheet 1
IATA ICAO Name
AAA....NTGA...French Polynesia
ABE....KABE....Allentown PA
MEX....MMMX...Mexico City
ORD...KORD...Chicago IL

Sheet 2
IATA....ICAO....Name
...........KABE....Allentown PA
...........KORD...Chicago IL
...........MMMX...Mexico City
...........NTGA....French Polynesia

Thanks I appreciate it.
 

Some videos you may like

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
Re: Relating two lists

Marc Enzi said:
I have several very long lists with data that I am trying to use to create a comprehensive list.

Airports have both a 3 letter IATA code (International Airline Transport Association) they also have a 4 letter ICAO code (International Civil Aeronautics Association). So Chicago O'Hare has a 3 letter IATA Code ORD and an ICAO COde of KORD, Mexico City is MEX (IATA) and MMMX (ICAO).

I have one partial list (Sheet 1) of both codes, and another list (SHeet 2)of ICAO codes (but no IATA codes)

I want to take the sheet 1 and use it to populate the IATA code column on sheet 2.

Sheet 1
IATA ICAO Name
AAA....NTGA...French Polynesia
ABE....KABE....Allentown PA
MEX....MMMX...Mexico City
ORD...KORD...Chicago IL

Sheet 2
IATA....ICAO....Name
...........KABE....Allentown PA
...........KORD...Chicago IL
...........MMMX...Mexico City
...........NTGA....French Polynesia

Thanks I appreciate it.

Sheet1(source)
Book3
ABCD
1IATAICAOName
2AAANTGAFrench Polynesia
3ABEKABEAllentown PA
4MEXMMMXMexico City
5ORDKORDChicago IL
6
Sheet1


Sheet2(destnation)
Book3
ABCD
1IATAICAOName
2ABEKABEAllentown
3ORDKORDChicago
4MEXMMMXMexico
5AAANTGAFrench
6
Sheet2


A2, copied down:

=INDEX(Sheet1!$A$2:$A$5,MATCH(B2,Sheet1!$B$2:$B$5,0))
 

Watch MrExcel Video

Forum statistics

Threads
1,118,018
Messages
5,569,646
Members
412,285
Latest member
Daibear
Top