+ Reply to Thread
Results 1 to 3 of 3

Function to Convert GPS Decimal to GPS DMS ie (Degrees, Minutes and Seconds)

  1. #1
    Registered User
    Join Date
    08-20-2018
    Location
    Goshen, Kentucky
    MS-Off Ver
    Mac
    Posts
    1

    Function to Convert GPS Decimal to GPS DMS ie (Degrees, Minutes and Seconds)

    When I use this function it returns 0 instead of the value that I see set to ConvertDegree when I set a breakpoint on it. Any thoughts on why this is not working as expected?

    Please Login or Register  to view this content.

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

    Re: Function to Convert GPS Decimal to GPS DMS ie (Degrees, Minutes and Seconds)

    No ideas. I copied that function into a blank worksheet, entered 41.5 into a cell, then entered =convert_degree(A1) into an adjacent cell and the result was 41° 30' 0". There must be something else going on in how you are using or entering the function or in the input data or in your Excel installation that is causing it to return 0.

    I could not see what the With Application...End With was doing, so I commented it out, and the result stayed the same.

    Can you give more information? I think the problem is with something outside of the function procedure.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Function to Convert GPS Decimal to GPS DMS ie (Degrees, Minutes and Seconds)

    Another way:

    A
    B
    C
    1
    10.46
    10° 27' 36"
    B1: =DD2DMS(A1)
    2
    -10.46
    -10° 27' 36"
    3
    -164.251
    -164° 15' 3"
    4
    224.7536
    224° 45' 13"
    5
    -290.505
    -290° 30' 18"
    6
    354.6703
    354° 40' 13"


    Please Login or Register  to view this content.
    Last edited by shg; 08-20-2018 at 03:18 PM.
    Entia non sunt multiplicanda sine necessitate

+ 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. Best way to convert Degrees Minutes and Seconds to Decimal of Degrees (and Vice Versa)
    By Aussie_Student in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-05-2017, 02:12 AM
  2. Replies: 4
    Last Post: 07-26-2016, 09:06 AM
  3. [SOLVED] how can i convert degrees/minutes/seconds to decimal degrees?
    By russkris in forum Excel General
    Replies: 14
    Last Post: 03-03-2015, 04:32 AM
  4. [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
  5. [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
  6. Replies: 2
    Last Post: 04-28-2006, 07:20 AM
  7. [SOLVED] How do i convert angles from degrees,minutes, seconds to decimal
    By morne in forum Excel General
    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