Академический Документы
Профессиональный Документы
Культура Документы
By Chip Pearson
www.cpearson.com/Excel/LatLong.aspx
chip@cpearson.com
17-Jan-2009
This worksheet contains formulas for working with Latitude and Longitude values in Excel. It also illustrates formula
calculating the Great Circle Distance between two points on Earth.
The functions in this worksheet use the RADIANS function, which is part of the Analysis Tool Pak, so the Analysis T
be loaded (Tools menu, Add-Ins item).
A Great Circle Distance is calculated by finding the interior spherical angle between the two points and then multipl
angle by the radius of the Earth. The interior spherical angle is calculated with the following equation (known as the
This angle multiplied by the radius of the Earth yields the Great Circle Distance between to locations.
Excel's trigonometric functions (SIN, COS, etc) work with Radians rather than Degrees, so the Latitude and Longitu
These functions use the RADIANS function to carry out the conversion. This function is part of the Analysis Tool Pa
loaded (Tools Menu, then Add-Ins item). This add-in is not required with Excel 2007 and later.
This section illustrates converting deg:min:sec values to degrees, minutes and seconds, and to
and calculating the distance between two locations. Distance is also calculated from Radians.
Latitude Longitude
Location1 Deg:Min:Sec 01º 00' 00" 100º 00' 00" In these cells, enter the value
Location2 Deg:Min:Sec 00º 00' 00" 100º 00' 00"
Latitude
Deg Min Sec Deg
Location1 1 0 0 100
Location2 0 0 0 100
North1 East1
0.0000 0.0000
North2 East2
0 45
ween to locations.
Longitude
Min Sec
0 0
0 0
=(Degrees/180)*PI