+ Reply to Thread
Results 1 to 3 of 3

Convert Lats and longs to decimals

  1. #1
    Registered User
    Join Date
    07-21-2005
    Posts
    6

    Convert Lats and longs to decimals

    I would like to know if there is a way to convert data of lats and longs 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 function that i could drag it for the entire column.

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

    Thanks

    Dharmik

  2. #2
    Herbert Seidenberg
    Guest

    Re: Convert Lats and longs to decimals

    =3D24*SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE
    (A1,"""","")," N",""),"=B0 ",":"),"' ",":")


  3. #3
    Herbert Seidenberg
    Guest

    Re: Convert Lats and longs to decimals

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


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1