I have a set of airport coordinates as defined here which I'm attempting to perform calculations on in excel.
I want to find the next closest airport for any given airports' coordinates.
The closest I've been able to get is the use of the formula :
=INDEX($A$1:$A$20,MATCH(MIN(SQRT(($B$1:$B$20-E1)^2+($C$1:$C$20-F1)^2)),SQRT(($B$1:$B$20-E1)^2+($C$1:$C$20-F1)^2),0),1)
as shown on this page.
However, this formula will provide the closest named location (i.e the airport) to a given set of coordinates.
How can I find the next closest airport?
Use the
SMALL
formula :SMALL({array};Nth)
andLARGE({array};Nth)
will return respectivelythe Nth smallest and largest value of a set!
your formula updated :
Hope this will help, copy the below formula in D2 with shif+ctrl+enter: