Closest air port codes to list of zip codes

gdamato

Board Regular
Joined
Aug 6, 2013
Messages
55
Hi,

Does anyone know of a formula of some kind that will tell me what the closest airport code is to a list of zip codes that I have? Let's say column A is a zip code, I would like column B to show JFK or ORD or any whatever airport code is closest. Bonus if column C can show the distance.

Thanks!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Given in A1:

Excel 2013
ABCDEFGHI
1citycountryIATAICAOlatitudelongitudedistance in KM6371
2New YorkUnited StatesJFKKJFK40.639751-73.7789255833.655549
3ParisFranceCDGLFPG49.0127792.55
Sheet2
Cell Formulas
RangeFormula
G2=RadiusEarth*((2*ASIN(SQRT((SIN((RADIANS(E2)-RADIANS(E3))/2)^2)+COS(RADIANS(E2))*COS(RADIANS(E3))*(SIN((RADIANS(F2)-RADIANS(F3))/2)^2)))))
Named Ranges
NameRefers ToCells
RadiusEarth=Sheet2!$I$1
 
Upvote 0
Thank you for the response though I'm not really clear on how this will work. I'm have a list of us zip codes and would like to find the nearest airport (using an airport code like JFK, ORD etc...).
 
Upvote 0
There is no mathematical correlation in between distance and zip code. Best would be to use latitude and longitude. Hence the creation of a table with latitude and longitude for each zip code.
Lat and long for commercial airports worldwide is public domain.
 
Upvote 0

Forum statistics

Threads
1,222,108
Messages
6,163,969
Members
451,867
Latest member
csktwyr

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
Back
Top