Hi guys,
I have a square matrix that represents the distances between over 1500 places.
The first column is a transpose of the first row. So it's possible to see every distance between the different places.
What I'm trying is: when I choose one place, I need to find the closest one. As it's a square matrix, there is a diagonal with 0s, which represents the distance between the same place.
I tried this formula, where H2 is the origin, A2:A6 is the destiny. But it's not working.{=INDEX(A2:A6,MATCH(MIN(IF(B1:F1=H4,IF(B2:F6>0,B2:F6))),0))}
Does someone have another idea for this puzzle?
I attached an example.
Kind Regards,
Alex
Bookmarks