简体   繁体   中英

Sort by longitude and latitude based on starting point

I converted the physical address to longitude and latitude in Excel. Is there a way to sort by starting point? For example, this is my starting point 42.0932869, -80.1049180, can Excel sort the longitude and latitude of what comes next from the starting point? I am trying to create a walking list of addresses and would like them in order based on starting location.

I am using Excel 365

Starting Point 42.0932869, -80.1049180 then what would be the next address from the list below?

42.0923267, -80.1041138
42.0840190, -80.0974670
42.0840500, -80.0967051
42.0935450, -80.1033530
42.0855000, -80.1021200
42.0916309, -80.0989128
42.0846050, -80.1010570
42.0846050, -80.1010570
42.0843432, -80.0993665
42.0924650, -80.1074910

您可以使用点间距离公式的值创建一个新列,然后对该列进行排序:

SQRT((lat - 42.0932869)^2 + (lon - -80.1041138)^2)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM