Convert Lats and longs to decimals

D

dharmik

I would like to know if there is a way to convert data of lats and long
into decimals in excel.
data is already entered as 27° 13' 26.00" N
and i would like to have it as 27.xxx .
Since I have a huge amount of data I was wondering if we had functio
that i could drag it for the entire column.

I tried going to cpearson website, but they require you to enter th
data in h:mm:ss form. The problem is I already have the data as 27° 13
26.00" N.

Thanks

Dharmi
 
H

Herbert Seidenberg

=24*SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE
(A1,"""","")," N",""),"° ",":"),"' ",":")
 
H

Herbert Seidenberg

Or for those Down Under
=SUBSTITUTE(SUBSTITUTE
(LEFT(A1,LEN(A1)-3),"° ",":"),"' ",":")*24*
IF(OR(RIGHT(A1,1)="S",RIGHT(A1,1)="W"),-1,1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top