Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88075

Excel: Finding nearest GPS coordinate from different workbooks [closed]

$
0
0

I have a spreadsheet with a list of GPS coordinates and corresponding workbook names see picture here. These corresponding workbooks also have a list of GPS coordinates.

I'm trying to find a way to open the appropriate workbook, search that workbook for the nearest GPS coordinate in that workbook, and record it in the original file.

I found a formula online that works quite well:

Find the nearest set of coordinates in Excel

=LOOKUP(1,1/FREQUENCY(0,MMULT((B$1:C$10-E1:F1)^2,{1;1})),A$1:A$10),

Except that I can't change it based on the changing workbooks. I can't combine the workbooks because there is too much data, and I can't change the formula manually because I have hundreds of workbooks to go through.

A VBA or formula based solution would be great!

Thanks in advance!


Viewing all articles
Browse latest Browse all 88075

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>