Convert Longitude & Latitude Start and End Coordinates into Nautical Miles (no API)

zgoldflo

New Member
Joined
Dec 13, 2021
Messages
30
Office Version
  1. 365
Platform
  1. Windows
I am trying to convert the START and END latitude and longitude coordinates I have into nautical miles. I read here that I had to convert my latitude and longitude (in degrees) to radians which I did by using the =RADIANS function. My situation is as follows:

I have a start and finish lat and long coordinates.

divvy1.JPG


What I am trying to do is find the distance in miles between START and END.

Problem with conversion to RADIANS:

divvy2.JPG



When entering the =RADIANS function for the START latitude and longitude I was able to get the RADIANS output (hopefully it is correct). However, with the END latitude and longitude, I get this format (above image) when inputting the same function! I don't know how to remedy the issue for the END latitude and longitude. What am I doing wrong here? I believe the data type for both START and END are in a numerical format and shouldn't affect the output of the function.

What I am really trying to solve is how to correctly utilize the =ACOS formula to get the distance in miles. I have not succeeded in finding clear-cut directions anywhere to get the answer that I need. I did review Thomas Blum's YouTube video here but that still didn't help me with my RADIANS problem and I wasn't transposing any data like he was in the video. I have read some of the directions and previous posts concerning this issue here but was not able to find an answer that would solve my scenario.

If anyone has simple clear-cut directions step-by-step on how to transform latitude and longitude coordinates into nautical miles I would greatly appreciate it!

Not sure how to input the Mini-sheet, hope I did that right.

2021_divvy-tripdata.xlsx
HIJKLMNO
1start_station_namestart_station_namestart_station_namestart_station_namestart_latstart_lngend_latend_lng
241.98-87.6541.98-87.66
3State St & 33rd St13216MLK Jr Dr & 29th StTA130700013941.834734-87.62581341.84205-87.617
4Lakeview Ave & Fullerton PkwyTA1309000019Ritchie Ct & Banks StKA150400013441.925858-87.63897341.90687-87.6262
5Kedzie Ave & Milwaukee Ave1308541.929528-87.70789941.92-87.72
6Montrose HarborTA1308000012Montrose HarborTA130800001241.963982-87.63818141.96398-87.6382
7Western Ave & Howard St527Campbell Ave & Fullerton Ave1564842.01885833-87.69002241.92468-87.6893
8Montrose HarborTA1308000012Lakefront Trail & Bryn Mawr AveKA150400015241.963982-87.63818141.98404-87.6523
9MLK Jr Dr & 29th StTA1307000139Calumet Ave & 33rd St1321741.842052-87.61741.8349-87.6179
10University Ave & 57th StKA1503000071Ellis Ave & 60th StKA150300001441.791478-87.59986141.7851-87.6011
11Cityfront Plaza Dr & Pioneer Ct13427Lake Shore Dr & Ohio StTA130600002941.890573-87.62207241.89257-87.6145
12Lake Shore Dr & Ohio StTA1306000029Wabash Ave & Grand AveTA130700011741.89257-87.61449241.89147-87.6268
January_2021
 

Attachments

  • divvy2.JPG
    divvy2.JPG
    71.2 KB · Views: 15

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Here is something I created a few years ago. It might help

Calc Lat Lon Distance.xls
BCDEFGHI
2Great Circle Distance
3First Point (A)Second Point (B)
4Degrees:48.36764777Degrees:48.367619
5Minutes:Minutes:
6Seconds:Seconds:
7Latitude48.368Latitude48.36761900
8Degrees:-117.2921845Degrees:-117.292185
9Minutes:Minutes:
10Seconds:Seconds:
11Longitude-117.292Longitude-117.292
24
25DistanceKilometers:0.0032Feet:10.49081Miles:0.00199
26Meters:3.20Nautical Miles:0.00173
27
28
29Method:
30(1) Enter the degrees, minutes, and seconds on both the latitude & longitude for the first point (A)
31(2) Enter the degrees, minutes, and seconds on both the latitude & longitude for the second point (B)
32(3) Read the distance in the yellow cells - Remember that the longitude for the US is a negative value and is calculated automatically; latititude for the US is a positive value.
33Estimated accuracy is about 656 feet over 31 miles
Great Circle Distance
Cell Formulas
RangeFormula
C7,I7C7=+((C6/60)+C5)/60+C4
C11,I11C11=+(((C10/60)+C9)/60+C8)
F25F25=+C23*60*6076.1154856
D25D25=1.852*60*C23
D26D26=+D25*1000
H25H25=+C23*60*1.150782
H26H26=+C23*60
 
Upvote 0
Thanks for the messages. To be honest, these both look incredibly complicated for me to follow along with. I am not a mathematics or trigonometry major. Also @Jeffrey Mahoney anyway I can get access to that excel file. I still don't see the =ACOS formula there that I think would help convert the data format coordinates I have in my sheet to miles. Excuse my ignorance.
 
Upvote 0
Thanks for the messages. To be honest, these both look incredibly complicated for me to follow along with. I am not a mathematics or trigonometry major. Also @Jeffrey Mahoney anyway I can get access to that excel file. I still don't see the =ACOS formula there that I think would help convert the data format coordinates I have in my sheet to miles. Excuse my ignorance.
Also, any solutions for the RADIANS issue I am encountering for my END lat and long coordinates?
 
Upvote 0
Here is something I created a few years ago. It might help

Calc Lat Lon Distance.xls
BCDEFGHI
2Great Circle Distance
3First Point (A)Second Point (B)
4Degrees:48.36764777Degrees:48.367619
5Minutes:Minutes:
6Seconds:Seconds:
7Latitude48.368Latitude48.36761900
8Degrees:-117.2921845Degrees:-117.292185
9Minutes:Minutes:
10Seconds:Seconds:
11Longitude-117.292Longitude-117.292
24
25DistanceKilometers:0.0032Feet:10.49081Miles:0.00199
26Meters:3.20Nautical Miles:0.00173
27
28
29Method:
30(1) Enter the degrees, minutes, and seconds on both the latitude & longitude for the first point (A)
31(2) Enter the degrees, minutes, and seconds on both the latitude & longitude for the second point (B)
32(3) Read the distance in the yellow cells - Remember that the longitude for the US is a negative value and is calculated automatically; latititude for the US is a positive value.
33Estimated accuracy is about 656 feet over 31 miles
Great Circle Distance
Cell Formulas
RangeFormula
C7,I7C7=+((C6/60)+C5)/60+C4
C11,I11C11=+(((C10/60)+C9)/60+C8)
F25F25=+C23*60*6076.1154856
D25D25=1.852*60*C23
D26D26=+D25*1000
H25H25=+C23*60*1.150782
H26H26=+C23*60
Thanks for your help.
 
Upvote 0
Hey folks, I found the excel sheet from @cpearson. What an amazing resource. Working on that now. Thanks!
 
Upvote 0

Forum statistics

Threads
1,215,220
Messages
6,123,694
Members
449,117
Latest member
Aaagu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top