I have a set of 9 nodes, with the distance between each pair of connected nodes. For example:
Node distance
(1,2) 72
(1,3) 31
(3,4) 81
I need a macro that will calculate the shortest distance between node 1 and each of the other nodes (2,3 and 4), and than will create a table that will sort the result by ascending distance.
The result I am expecting would be
(1,3) 31
(1,2) 72
(1,4) 112
I am new to macros. Anyone can help ?
Bookmarks