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: 15

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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