bit_user :
derekullo :
At work I do alot of traveling between locations pretty much at random.
I may go from branch 4 to branch 2 on Monday and then branch 7 to branch 1 to branch 11 on Tuesday.
So in an effort to make it easier to calculate distances between branches I hard coded in excel's visual basic "i believe it's visual basic" the distance between all 16 branches to every other branch on the spreadsheet for the first 3 lines on the excel page.
if a1 = branch 1 and a2 = branch 2 then a3 = 4 (distance between branches)
...
Given a list of branches to visit in a week and the distances between them, can you show me how to write a spreadsheet that computes the optimal order in which to visit them?
Every time I try, my spreadsheet just hangs if I enter more than a few locations.
For me working in I.T it is almost impossible to predict when something will break, with 16 branches electronics/computers break all the time.
Thankfully I am not the only technician that repairs and our boss tends to give out work orders for branches that are physically near each other.
What you are asking may be impossible to do with Excel due to Excel not knowing where each branch is in relation to another branch.
For example
If the distance between branch 1 and branch 2 is 3 miles
and the distance between branch 2 and branch 3 is 4 miles
We could use a^2 + b^2 = c^2 to correctly deduce that the absolute distance between branch 1 and branch 3 is 5 miles, solving for the hypotenuse obviously lol.
And this works great with geometry, but in the real world maybe there is a swamp in between branch 1 and 3 which would force you to backtrack from branch 3 to branch 2 then to branch 1.
Thankfully I rarely travel between more than 3 branches in a day and I do try to structure it so the last stop is nearest my house, for all those mileage dollars.
Of course if I was traveling between 6+ branches in a day I would use MapQuest to figure out the most optimal path.
MapQuest knows where branches are in relation to each other, branch 1 is northwest of branch 2, and more importantly 99% of all the roads used to get to those branches.
To actually do this with excel would basically be recreating the background logic of Mapquest which I imagine requires a lot of memory unless you limited the map area to your city.