Distance Between Points with Lat Long and Get Average

Smerdis13

New Member
Joined
Nov 15, 2023
Messages
13
Office Version
  1. 2021
  2. 2019
Platform
  1. Windows
Hi Guys,
I Have one Excel file with Different Points with Lat Long which categorized in some AREA
I Need Excel VBA Code to:
-Get Distance between Points in each Area
-Get Minumum Distance for Each Point
-Get Average of Minimum Distances for Each Area
-Give Table for results based on Each Area and Average Distance
Sampe Image attached
Thanks in advance Guys
 

Attachments

  • Distance.jpg
    Distance.jpg
    54.6 KB · Views: 14

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
This can all be done with formulas. Do you really need VBA? If so, I can't help, but I do know the formula solution.
 
Upvote 0
This can all be done with formulas. Do you really need VBA? If so, I can't help, but I do know the formula solution.
Thanks Dear
I Needed VBA to do the process based on Area and give results, not to check points each one by one
but it is appreciated if you share formula solution as well
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top