vicpinto1970
New Member
- Joined
- Sep 27, 2021
- Messages
- 1
- Office Version
- 365
I have a data set with thousands of rows of unique locations that include a LAT and LON. For each row, I would like to calculate the closest location in relation to all the other locations and store this data in a new set in the form of LOCATION - CLOSEST LCOATION - DISTANCE. I created some VBA code to do this but the problem is my data set contains thousands of rows and it takes the code about 11 minutes to run. Too slow.
I was wondering if a combination of power query and power pivot could speed things up.
Any thought?
I was wondering if a combination of power query and power pivot could speed things up.
Any thought?