Stirling_confused
New Member
- Joined
- Jan 9, 2023
- Messages
- 2
I have two sets of data – list A is a list of train stations, with their longitude and latitude. List B is a list of places, with the population and a longitude/latitude. I want to be able to write a formula that takes a particular station, and sums the population in List B within 25miles.
List A:
List B:
I know how to calculate the distance between two points using an ACOS formula, however am a bit lost as to how to do a sumifs that calculates the distance between two points. Any help much appreciated
List A:
Station | Longitude | Lattitude | Population within 25 miles |
Station A | 51.49106 | 0.121394 | |
Station B | 51.57496 | -3.22983 | |
Station C | 51.64471 | -3.32699 | |
Station D | 51.71506 | -3.44308 | |
Station E | 57.1437 | -2.09869 | |
Station F | 56.05459 | -3.30056 | |
Station G | 52.54396 | -4.05707 | |
Station H | 52.89858 | -4.37418 | |
Station I | 51.81669 | -3.00965 | |
Station J | 53.29457 | -3.58262 | |
Station K | 52.41404 | -4.08189 | |
Station L | 53.75297 | -2.36955 |
List B:
Description | Lattitude | Longitude | Population |
Place A | 51.519589 | -0.096277417 | 1475 |
Place B | 50.45758 | -4.7809718 | 1359 |
Place C | 51.632212 | -0.14008798 | 1495 |
Place D | 50.855827 | -0.77556035 | 1524 |
Place E | 50.873154 | 0.60325584 | 1819 |
Place F | 51.294288 | -0.74939155 | 2342 |
Place G | 52.485147 | -1.7922926 | 1617 |
Place H | 51.510605 | -0.21576033 | 1594 |
Place I | 51.489449 | -0.14014192 | 1362 |
Place J | 51.144167 | 0.90731201 | 2253 |
Place K | 51.389227 | -0.42091316 | 1635 |
Place L | 51.506754 | -0.025943412 | 1591 |
Place M | 51.067315 | -0.33381087 | 1782 |
I know how to calculate the distance between two points using an ACOS formula, however am a bit lost as to how to do a sumifs that calculates the distance between two points. Any help much appreciated