Convert Degree Min Sec to Decimal Degree Lat/Longitude

rodwilma

New Member
Joined
Nov 12, 2012
Messages
11
I have a spreadsheet with coordinates in the following format and I need to convert these to decimal degrees. Anyone know how?

[TABLE="width: 282"]
<TBODY>[TR]
[TD]Latitude </SPAN></SPAN>
[/TD]
[TD]Longitude </SPAN></SPAN>
[/TD]
[/TR]
[TR]
[TD]N 29-36-28.8</SPAN></SPAN>
[/TD]
[TD]W 081-11-57.2</SPAN></SPAN>
[/TD]
[/TR]
[TR]
[TD]N 29-36-28.6</SPAN></SPAN>
[/TD]
[TD]W 081-11-57.5</SPAN></SPAN>
[/TD]
[/TR]
[TR]
[TD]N 29-36-06.5</SPAN></SPAN>
[/TD]
[TD]W 081-14-06.7</SPAN></SPAN>
[/TD]
[/TR]
[TR]
[TD]N 29-36-05.0</SPAN></SPAN>
[/TD]
[TD]W 081-14-05.6</SPAN></SPAN>
[/TD]
[/TR]
[TR]
[TD]N 29-36-04.7</SPAN></SPAN>
[/TD]
[TD]W 081-14-02.1</SPAN></SPAN>
[/TD]
[/TR]
[TR]
[TD]N 29-36-04.5</SPAN></SPAN>
[/TD]
[TD]W 081-14-09.6</SPAN></SPAN>
[/TD]
[/TR]
</TBODY>[/TABLE]

Any input is greatly appreciated.

Thanks!
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Re: How to Convert Degree Min Sec to Decimal Degree Lat/Longitude

Try something like this.
<br />
Book1
ABCD
1LatitudeLongitudeLatitude (decimal degree)Longitude (decimal degree)
2N 29-36-28.8W 081-11-57.229.6080000081.19922222
3N 29-36-28.6W 081-11-57.529.6079444481.19930556
4N 29-36-06.5W 081-14-06.729.6018055681.23519444
5N 29-36-05.0W 081-14-05.629.6013888981.23488889
6N 29-36-04.7W 081-14-02.129.6013055681.23391667
7N 29-36-04.5W 081-14-09.629.6012500081.23600000
Sheet1
Cell Formulas
RangeFormula
C2=MID(A2,3,FIND("-",A2)-3)+("00:"&SUBSTITUTE(RIGHT(A2,7),"-",":"))*24
D2=MID(B2,3,FIND("-",B2)-3)+("00:"&SUBSTITUTE(RIGHT(B2,7),"-",":"))*24
 
Upvote 0
Re: How to Convert Degree Min Sec to Decimal Degree Lat/Longitude

Thank you both so much!!

For the Longitude W, how can I make that appear as a negative? I've used the formula and it works great, but have realized I need a "-" before 81 to place it in the right location.

Thanks again!
 
Upvote 0
Re: How to Convert Degree Min Sec to Decimal Degree Lat/Longitude

Try something like...

=IF(LEFT(B2,1)="W",-1,1)*(MID(B2,3,FIND("-",B2)-3)+("00:"&SUBSTITUTE(RIGHT(B2,7),"-",":"))*24)
 
Upvote 0
Re: How to Convert Degree Min Sec to Decimal Degree Lat/Longitude

[TABLE="width: 300"]
<tbody>[TR]
[TD]Latitude
[/TD]
[TD]Longitude
[/TD]
[/TR]
[TR]
[TD]42D 43' 5" N
[/TD]
[TD]71D 12' 37" W
[/TD]
[/TR]
[TR]
[TD]42D 36' 7.880" N
[/TD]
[TD]71D 10' 17.400" W
[/TD]
[/TR]
[TR]
[TD]42D 26' 31.65" N
[/TD]
[TD]71D 6' 16.16" W
[/TD]
[/TR]
</tbody>[/TABLE]

AlphaFrog

Do you have any formulas that may work for me to convert to decimal degrees? I have about 300 locations.
 
Upvote 0
Re: How to Convert Degree Min Sec to Decimal Degree Lat/Longitude

[TABLE="width: 300"]
<tbody>[TR]
[TD]Latitude[/TD]
[TD]Longitude[/TD]
[/TR]
[TR]
[TD]42D 43' 5" N[/TD]
[TD]71D 12' 37" W[/TD]
[/TR]
[TR]
[TD]42D 36' 7.880" N[/TD]
[TD]71D 10' 17.400" W[/TD]
[/TR]
[TR]
[TD]42D 26' 31.65" N[/TD]
[TD]71D 6' 16.16" W[/TD]
[/TR]
</tbody>[/TABLE]

AlphaFrog

Do you have any formulas that may work for me to convert to decimal degrees? I have about 300 locations.


I assume you wanted negative for South and West as requested before.
<br />
Book1
ABCD
1LatitudeLongitudeLatitude (decimal degree)Longitude (decimal degree)
242D 43' 5" N71D 12' 37" W42.71805556-71.21027778
342D 36' 7.880" N71D 10' 17.400" W42.60218889-71.1715
442D 26' 31.65" N71D 6' 16.16" W42.442125-71.10448889
Sheet1
Cell Formulas
RangeFormula
C2=SUBSTITUTE(SUBSTITUTE(LEFT(A2,LEN(A2)-3),"D ",":"),"' ",":")*IF(RIGHT(B2,1)="S",-24,24)
D2=SUBSTITUTE(SUBSTITUTE(LEFT(B2,LEN(B2)-3),"D ",":"),"' ",":")*IF(RIGHT(B2,1)="W",-24,24)
 
Last edited:
Upvote 0
Re: How to Convert Degree Min Sec to Decimal Degree Lat/Longitude

I assume you wanted negative for South and West as requested before.

ABCD

<colgroup><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: center"]Latitude[/TD]
[TD="align: center"]Longitude[/TD]
[TD="align: center"]Latitude
(decimal degree)[/TD]
[TD="align: center"]Longitude
(decimal degree)[/TD]

[TD="align: center"]2[/TD]
[TD="align: center"]42D 43' 5" N[/TD]
[TD="align: center"]71D 12' 37" W[/TD]
[TD="align: center"]42.71805556[/TD]
[TD="align: center"]-71.21027778[/TD]

[TD="align: center"]3[/TD]
[TD="align: center"]42D 36' 7.880" N[/TD]
[TD="align: center"]71D 10' 17.400" W[/TD]
[TD="align: center"]42.60218889[/TD]
[TD="align: center"]-71.1715[/TD]

[TD="align: center"]4[/TD]
[TD="align: center"]42D 26' 31.65" N[/TD]
[TD="align: center"]71D 6' 16.16" W[/TD]
[TD="align: center"]42.442125[/TD]
[TD="align: center"]-71.10448889[/TD]

</tbody>


Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #E0E0F0"]
[TH="width: 10"]Cell[/TH]
[TH="align: left"]Formula[/TH]

<tbody> [TD]
</thead><tbody>
[TH="width: 10, bgcolor: #E0E0F0"]C2[/TH]
[TD="align: left"]=SUBSTITUTE( SUBSTITUTE(LEFT(A2,LEN(A2)-3),"D ",":"),"' ",":" )*IF( RIGHT(B2,1)="S",-24,24 )[/TD]

[TH="width: 10, bgcolor: #E0E0F0"]D2[/TH]
[TD="align: left"]=SUBSTITUTE( SUBSTITUTE(LEFT(B2,LEN(B2)-3),"D ",":"),"' ",":" )*IF( RIGHT(B2,1)="W",-24,24 )[/TD]

</tbody>
[/TD]
[/TR]
</tbody>[/TABLE]

Prefect! I substituted the D with the degree sign (which I couldn't figure out how to include in this text).

Thank you!
Cassandra
 
Upvote 0
Re: How to Convert Degree Min Sec to Decimal Degree Lat/Longitude

You're welcome. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,808
Messages
6,181,072
Members
453,020
Latest member
mattg2448

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