Hi,
I need to create a table giving me the distance between any two airports with the Airport codes listed in the header and the same codes listed in the left column
and using a formula with vlookup to get the longitude abd latitude from a table in another sheet. I want to copy that formula in the whole table using array formula to populate the table. To look like the attached photobelow
And the formula i used was
=ACOS(((SIN(VLOOKUP(A2,KK,4,TRUE)*3.14/180))*SIN((VLOOKUP(A3,KK,4,TRUE)*3.14/180))+(COS(VLOOKUP(A2,KK,4,TRUE)*3.14/180)*COS(VLOOKUP(A3,KK,4,TRUE)*3.14/180)*COS((VLOOKUP(A2,KK,8,TRUE)-VLOOKUP(A3,KK,8,TRUE))*3.14/180))))*180*60/3.14
Where cell A2 the first airport code
And cell A3 the second airport.
I need to create a table giving me the distance between any two airports with the Airport codes listed in the header and the same codes listed in the left column
and using a formula with vlookup to get the longitude abd latitude from a table in another sheet. I want to copy that formula in the whole table using array formula to populate the table. To look like the attached photobelow
And the formula i used was
=ACOS(((SIN(VLOOKUP(A2,KK,4,TRUE)*3.14/180))*SIN((VLOOKUP(A3,KK,4,TRUE)*3.14/180))+(COS(VLOOKUP(A2,KK,4,TRUE)*3.14/180)*COS(VLOOKUP(A3,KK,4,TRUE)*3.14/180)*COS((VLOOKUP(A2,KK,8,TRUE)-VLOOKUP(A3,KK,8,TRUE))*3.14/180))))*180*60/3.14
Where cell A2 the first airport code
And cell A3 the second airport.