I think, well, I'm almost sure, that the results are wrong. Why? because the formula as I read the link provided works on degrees, while excel in trigonometrical functions expects radians.
Anyway as your workbook would be overloaded with formulas (not strange, because 2.4K x 200K is ca 0.5G of complicated formulas), and I do not think 64bits and large ram would make situation much better.
The macro below has not been optimized yet (still a lot of potential for improvement, especially in reading and writing to columns B:E) but shall do something reasonable for you.
so insert a part (say just 100 as a starting run) of your 200K list1 points in columns B:C (starting row 5) and all list 2 points in columns N:O (also starting row 5)
and try:
The calculated distance is in miles, but of course you can multiply it by 5280 to obtain result in feet.
You can use attached file, but please before testing on larger sets of data clear content (formulas !!!) of columns F:L.
If the time is acceptable (shall be few seconds maximum), then try larger sub-set of list1 (say 10000). The time shall be roughly lineary dependant on list1 length (so 100 times longer then previous run - few, may be 10 minutes).
If it is so - you can try a full run - shall take some 20 times longer - say 3 hrs. Or do it part by part (safer way tahn potentially 3hrs run which breaks after 2.5 hr
).
So try and let us know how it worked (hopefully) for you.
Bookmarks