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.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
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))
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,118
Messages
5,835,492
Members
430,359
Latest member
ManuelCukRia

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
Top