I am aware that there are other similar questions like this on here, but they seem to be pieced together, and I cannot seem to find a single answer that can be easily deployed. I previously used G_Distance function to calculate miles between a matrix of zip codes, and it worked flawlessly. I now have obtained a Google API to be able to achieve the same result, but I have been unable to get it to work within my current Excel framework.
Basically, I'm looking for a formula (or macro) using a Google API that will allow the mileage to be calculated as shown below (do not need the actual "mi" suffix--just there to show what I'm calculating).
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]61820[/TD]
[TD]47408[/TD]
[TD]52242[/TD]
[TD]20742[/TD]
[TD]48104[/TD]
[/TR]
[TR]
[TD]Name1[/TD]
[TD]32220[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[/TR]
[TR]
[TD]Name2[/TD]
[TD]75501[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[/TR]
[TR]
[TD]Name3[/TD]
[TD]31316[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[/TR]
</tbody>[/TABLE]
I know this is possible...and I'm weary of trying to figure it out! I'm hoping some of my Excel friends can help me!
Thanks!
Basically, I'm looking for a formula (or macro) using a Google API that will allow the mileage to be calculated as shown below (do not need the actual "mi" suffix--just there to show what I'm calculating).
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]61820[/TD]
[TD]47408[/TD]
[TD]52242[/TD]
[TD]20742[/TD]
[TD]48104[/TD]
[/TR]
[TR]
[TD]Name1[/TD]
[TD]32220[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[/TR]
[TR]
[TD]Name2[/TD]
[TD]75501[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[/TR]
[TR]
[TD]Name3[/TD]
[TD]31316[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[TD]??mi[/TD]
[/TR]
</tbody>[/TABLE]
I know this is possible...and I'm weary of trying to figure it out! I'm hoping some of my Excel friends can help me!
Thanks!