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!