Hi guys,
I have a simple table with distances between Italian cities. dist.xlsx
What I'm trying to have is when a user chooses a starting point (A14 - validated list), cell B14 will show a destination location that is the closest to the selection in A14, based on the data from the table.
Now I thought that I could simply use the MIN formula to check which value in a row is the lowest, then copy the heading (B2:H2) of that value into B14. But how to tell VBA to select the entire row in which the starting city is located in the first place? So, say a user chooses the city Inveruno in A14. Then after hitting the macro button, cell B14 would output the city Arluno, which is at 10 km from Inveruno.
I'm not new to VBA (let's say pre-intermidiary), but I just can't seem to figure this out...
Bookmarks