+ Reply to Thread
Results 1 to 15 of 15

how can i convert degrees/minutes/seconds to decimal degrees?

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2403)
    Posts
    370

    how can i convert degrees/minutes/seconds to decimal degrees?

    Hello,

    For work we have a spreadsheet that gets uploaded into a database, how ever this year they wont different information regarding the GPS Locations

    For example, last year I formatted the GPS as Degrees, Minutes, Seconds
    43 04 27.1 147 00 59.9

    This was fine, however this year they wont the GPS in Decimal Degrees (GDA94)

    With a 20,000 row spreadsheet this is going to be horrible.

    Attached you will see the spreadsheet with most of the rows deleted.

    Column E and F are the columns that need some help.

    in the first 3 rows(3-5) you will see how it was last year however when you pop that into.. say Google Earth, it sends me to the wrong end of the world, only because you I can't add a -(minus) but in rows 6-10 it sends me to the right part of the world.

    Now is there an easier way to convert the first 3 rows from 43 XX XX.X to -43 XX XX.X and then into decimal degrees?

    Many thanks in advance for any help you can offer.
    Attached Files Attached Files
    Last edited by russkris; 03-03-2015 at 05:04 AM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,356

    Re: how can i convert degrees/minutes/seconds to decimal degrees?

    Hi russ,

    Looking at your attached file, do you have Lat and Long reversed in E2 and F2?

    Also can you do two examples by hand and give us a correct answer. That would really help us check our formulas.

    Could you convert 4 different points for us, using N, S, E, W in your examples.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2403)
    Posts
    370

    Re: how can i convert degrees/minutes/seconds to decimal degrees?

    Hi Marvin,

    Yes, good pick up. That was a test.. lol j/ks


    Edited the spreadsheet and now the Lat/Long are in the right place.

    Not sure how to create the four points you need.
    Attached Files Attached Files

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: how can i convert degrees/minutes/seconds to decimal degrees?

    Use text to columns using space as your delimiter to convert to S, Degree, minutes and seconds then simply run a formula = degrees + minutes / 60 + seconds /3600 to convert to decimal (multiple this by -1 to convert to negative)

    I just did it in 2 minutes on your example sheet. If you don't follow this let me know
    Happy with my advice? Click on the * reputation button below

  5. #5
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: how can i convert degrees/minutes/seconds to decimal degrees?

    An Easting will always be positive (West negative). A Northing will be positive (South negative) so the E will be fine as is but the South will require a negative. Did you try my suggestion above?

  6. #6
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2403)
    Posts
    370

    Re: how can i convert degrees/minutes/seconds to decimal degrees?

    Hi Crooza,

    Sorry I missed your post. Many apologies.

    You will have to excuse me, I am a noob with forumlas.

    Would you mind, if it is not to much trouble, posting the forumla?

  7. #7
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: how can i convert degrees/minutes/seconds to decimal degrees?

    gps(1) decimal degrees.xlsx

    Try this. The formula is on sheet 2

    I copied the column from your original sheet and pasted it as a single column in cell A1 of sheet 2.
    Then I went to the data tab and selected convert text to columns, and delimited by space. This will split the single cells into columns. You'll get a slight misalignmnet with your columns due to you having an S in some and not in others. I manually realigned this but I'm assuming in your real data all your data is the same format. I then put the formula in to cell E1 and copied down. You could copy and paste as values back into sheet 1 if you wish

  8. #8
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2403)
    Posts
    370

    Re: how can i convert degrees/minutes/seconds to decimal degrees?

    Hi Crooza,

    So what I need to do is create extra columns via the data tab(so that will be F,G,H) then add the formula to Column I to get the DD Lat and the same for the Long?

  9. #9
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: how can i convert degrees/minutes/seconds to decimal degrees?

    That will work or do as I did and do it all in a clean tab (sheet 2) and copy just the answer column back to the original (but copy and paste as values not formulas when you do it)

    Send me the full file if you want and I'll sort it out providing it's not too big

  10. #10
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2403)
    Posts
    370

    Re: how can i convert degrees/minutes/seconds to decimal degrees?

    20,000 rows mate.. lol

    I should be able to do it. Shame it couldnt be done through a marco

  11. #11
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: how can i convert degrees/minutes/seconds to decimal degrees?

    You could do it with a macro but it would take me longer to write the macro than it would to manually do the change using the above method. Happy to help if you want to send the file through

  12. #12
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2403)
    Posts
    370

    Re: how can i convert degrees/minutes/seconds to decimal degrees?

    When it hits a blank cell it returns zero. Not sure how to get rid of this.

  13. #13
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2403)
    Posts
    370

    Re: how can i convert degrees/minutes/seconds to decimal degrees?

    Thanks heaps for your help. I try and use these forums to learn as I go.


    What do you think of this?

    For the column next to the Long
    =-1*(SUBSTITUTE(SUBSTITUTE(A2,"S ","")," ",":"))*24
    For the column next to the Lat
    =(SUBSTITUTE(SUBSTITUTE(F2,"E ","")," ",":"))*24
    Yet to test in bulk but it seem Google Earth likes it

  14. #14
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: how can i convert degrees/minutes/seconds to decimal degrees?

    Good thinking with the time format. seems to work well

    if you want a blank cell when you hit a blank cell the wrap your formula in an if like this

    =if(a2="","",-1*(SUBSTITUTE(SUBSTITUTE(A2,"S ","")," ",":"))*24)

  15. #15
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2403)
    Posts
    370

    Re: how can i convert degrees/minutes/seconds to decimal degrees?

    I would like to take full credit but I can't.

    Cheers for the help.

+ 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] Convert GPS Degrees Minutes Seconds to Decimal
    By Nelson.B22 in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 02-03-2014, 11:39 PM
  2. [SOLVED] convert decimal degrees to degrees minutes seconds
    By Chris r in forum Excel General
    Replies: 6
    Last Post: 12-06-2013, 06:24 AM
  3. Converting Lat/Long (Degrees Minutes Seconds) to Decimal Degrees
    By Jeremy Rayne in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2008, 06:02 PM
  4. Replies: 2
    Last Post: 04-28-2006, 07:20 AM
  5. Replies: 1
    Last Post: 11-23-2005, 10:15 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