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?

Latitude </SPAN></SPAN>
Longitude </SPAN></SPAN>
N 29-36-28.8</SPAN></SPAN>
W 081-11-57.2</SPAN></SPAN>
N 29-36-28.6</SPAN></SPAN>
W 081-11-57.5</SPAN></SPAN>
N 29-36-06.5</SPAN></SPAN>
W 081-14-06.7</SPAN></SPAN>
N 29-36-05.0</SPAN></SPAN>
W 081-14-05.6</SPAN></SPAN>
N 29-36-04.7</SPAN></SPAN>
W 081-14-02.1</SPAN></SPAN>
N 29-36-04.5</SPAN></SPAN>
W 081-14-09.6</SPAN></SPAN>

<TBODY>
</TBODY>

Any input is greatly appreciated.

Thanks!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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

Latitude
Longitude
42D 43' 5" N
71D 12' 37" W
42D 36' 7.880" N
71D 10' 17.400" W
42D 26' 31.65" N
71D 6' 16.16" W

<tbody>
</tbody>

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

LatitudeLongitude
42D 43' 5" N71D 12' 37" W
42D 36' 7.880" N71D 10' 17.400" W
42D 26' 31.65" N71D 6' 16.16" W

<tbody>
</tbody>

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
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

<colgroup><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>


Worksheet Formulas
CellFormula
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)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

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,214,946
Messages
6,122,401
Members
449,081
Latest member
JAMES KECULAH

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