+ Reply to Thread
Results 1 to 6 of 6

help with coordinate conversion

  1. #1
    Registered User
    Join Date
    01-19-2012
    Location
    bc, canada
    MS-Off Ver
    Excel 2003
    Posts
    15

    help with coordinate conversion

    Hello,

    I have a spreadsheet with coordinates in the following format. N54 36 10 W124 04 32.

    I would like to be able to change the format of these coordinates to the following 54.6144444, 124.0666667

    So would need to remove the N, and the W and convert the format.

    Any help is appreciated and spreadsheet is attached
    Attached Files Attached Files
    Last edited by valhalla1; 04-26-2017 at 06:34 PM.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: help with coordinate conversion

    Are the coordinates consistently in that format? What is the meaning of each element? I assumed they were degrees minutes seconds, but I do not get the same values that you get. (I got 54.6028 for 54 36 10 and 124.0756 for 124 04 32).

    Whatever the specific meaning of each field is, the difficult part is using Excel's text functions to parse the string into individual values. (MID() function help file https://support.office.com/en-us/art...8-4ecb12433028 ). Something like =MID(A2,2,2) will extract the "degrees" number 54. MID(A2,5,2) will extract the minutes 36. MID(A2,8,2) will extract the seconds 10. Combine that with appropriate "conversion factors" (minutes/60 and seconds/3600) to convert minutes and seconds to decimal degrees should do the job.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    01-19-2012
    Location
    bc, canada
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: help with coordinate conversion

    Quote Originally Posted by MrShorty View Post
    Are the coordinates consistently in that format? What is the meaning of each element? I assumed they were degrees minutes seconds, but I do not get the same values that you get. (I got 54.6028 for 54 36 10 and 124.0756 for 124 04 32).

    Whatever the specific meaning of each field is, the difficult part is using Excel's text functions to parse the string into individual values. (MID() function help file https://support.office.com/en-us/art...8-4ecb12433028 ). Something like =MID(A2,2,2) will extract the "degrees" number 54. MID(A2,5,2) will extract the minutes 36. MID(A2,8,2) will extract the seconds 10. Combine that with appropriate "conversion factors" (minutes/60 and seconds/3600) to convert minutes and seconds to decimal degrees should do the job.
    Thanks for your help, my math was wrong, you numbers are correct. I numbers are origonally in Degree Minute Second format. I am wanting degree.decimal format. I will play with your formulas and see if I can make it work, thanks.

  4. #4
    Registered User
    Join Date
    01-19-2012
    Location
    bc, canada
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: help with coordinate conversion

    Quote Originally Posted by MrShorty View Post
    Are the coordinates consistently in that format? What is the meaning of each element? I assumed they were degrees minutes seconds, but I do not get the same values that you get. (I got 54.6028 for 54 36 10 and 124.0756 for 124 04 32).

    Whatever the specific meaning of each field is, the difficult part is using Excel's text functions to parse the string into individual values. (MID() function help file https://support.office.com/en-us/art...8-4ecb12433028 ). Something like =MID(A2,2,2) will extract the "degrees" number 54. MID(A2,5,2) will extract the minutes 36. MID(A2,8,2) will extract the seconds 10. Combine that with appropriate "conversion factors" (minutes/60 and seconds/3600) to convert minutes and seconds to decimal degrees should do the job.

    Thanks for the help! I got it with this formula. =MID(A2,2,2)+(MID(A2,5,2))/60+(MID(A2,8,2))/3600

  5. #5
    Forum Contributor
    Join Date
    03-14-2013
    Location
    England
    MS-Off Ver
    2007
    Posts
    186

    Re: help with coordinate conversion

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    03-14-2013
    Location
    England
    MS-Off Ver
    2007
    Posts
    186

    Re: help with coordinate conversion

    But if the coordinates are N12 vs N123, you need to account for this in the extraction from the string

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Plot value against an X and Y coordinate
    By nac1987 in forum Excel General
    Replies: 4
    Last Post: 12-22-2016, 11:46 AM
  2. xy coordinate sorting
    By joschij in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-25-2014, 12:45 PM
  3. coordinate conversion
    By stewman in forum Excel General
    Replies: 1
    Last Post: 02-24-2011, 10:45 AM
  4. Coordinate Conversion
    By stewman in forum Excel General
    Replies: 3
    Last Post: 12-16-2010, 06:51 PM
  5. Coordinate Conversion Help
    By stewman in forum Excel General
    Replies: 4
    Last Post: 12-06-2010, 01:57 PM
  6. return value of X coordinate and Y coordinate?
    By sbmoller in forum Excel General
    Replies: 1
    Last Post: 09-22-2007, 06:54 AM
  7. Mouse coordinate conversion!!!
    By Fustin François in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-21-2005, 02:54 AM

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