+ Reply to Thread
Results 1 to 3 of 3

How to convert decimal to DMS in excel?

  1. #1
    Registered User
    Join Date
    07-23-2018
    Location
    Nepal
    MS-Off Ver
    2007
    Posts
    15

    How to convert decimal to DMS in excel?

    How to convert decimal value calculated by formulas or function in excel to DMS with accurate result?
    --
    for example
    --
    Cell A1 is =86.25-83.45
    Cell B1 is =TEXT(IF(A1=0,0,(A1/ABS(A1))*INT(ABS(A1))),"00°")&TEXT(INT(MOD((ABS(A1)*60),60)),"00'")&TEXT(MOD((ABS(A1)*3600),60),"00''")
    --
    The result is 02°47'00''
    --
    --
    If we input 2.8 directly to the cell A1 then the result is 02°48'00''
    --
    Last edited by nabinprd1; 07-23-2018 at 08:41 AM. Reason: mistake by only 1 value in previous. now 02°78'00'' is replaced by 02°48'00''

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,176

    Re: How to convert decimal to DMS in excel?

    Try:

    =IF(A1<0,"-","")&TEXT(ABS(A1)/24,"[h]\°mm\'ss\''")

  3. #3
    Registered User
    Join Date
    07-23-2018
    Location
    Nepal
    MS-Off Ver
    2007
    Posts
    15

    Re: How to convert decimal to DMS in excel?

    Very very thanks, working with accurate result.

+ 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] Excel formula, convert degrees to decimal.
    By nereas in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-14-2024, 09:36 AM
  2. How can i convert an ASCII character to decimal/hex in Excel?
    By Surekha in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-17-2022, 02:24 PM
  3. [SOLVED] How do I convert decimal inches to fractions in excel
    By JTZ in forum Excel General
    Replies: 7
    Last Post: 12-14-2016, 01:46 AM
  4. [SOLVED] Convert minutes (in decimal form) to hours (in decimal form)
    By DonW in forum Excel General
    Replies: 6
    Last Post: 07-07-2016, 07:31 PM
  5. Replies: 22
    Last Post: 09-15-2013, 10:43 AM
  6. Convert Coordinates. Degree Minute.decimal to degree.decimal
    By stewman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-03-2013, 07:37 PM
  7. [SOLVED] How do I sum hours in Excel and convert to decimal numbers?
    By Heinsohn in forum Excel General
    Replies: 2
    Last Post: 03-05-2005, 04:06 PM

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