Converting a Decimal Degree Value to Degrees, Minutes, Seconds

Last reviewed: August 20, 1995
Article ID: Q73023
The information in this article applies to:
  • Microsoft Excel for Windows, versions 3.x, 4.0, 4.0a, 5.0, 5.0c
  • Microsoft Excel for the Macintosh, versions 3.x, 4.x, 5.0, 5.0a
  • Microsoft Excel for Windows NT, version 5.0
  • Microsoft Excel for Windows 95, version 7.0

SUMMARY

This article provides a method to convert a degree value stored in decimal format (base 10) to degrees, minutes, and seconds as text. Microsoft Excel does not provide a number format to do this.

MORE INFORMATION

Fractions of a degree are commonly expressed in units called minutes and seconds. One degree is equivalent to 60 minutes, and similarly one minute equals 60 seconds. These units are most commonly used with nautical charts and/or navigation.

The following function macro will accept an angle formatted as a decimal number and convert it to degrees, minutes, and seconds as text.

   A1:     Convert_Degree
   A2:     =ARGUMENT("Decimal_Deg")
   A3:     =RESULT(2)
   A4:     Degrees=INT(Decimal_Deg)
   A5:     Minutes=(Decimal_Deg-Degrees)*60
   A6:     Seconds=ROUND((Minutes-INT(Minutes))*60,0)
   A7:     =RETURN(Degrees&"~ "&INT(Minutes)&"' "&Seconds&"""")

For example, entering =Convert_Degree(10.46) into a worksheet returns 10~ 27' 36" (10 degrees, 27 minutes, 36 seconds).

REFERENCES

"User's Guide," version 4.0, pages 210-211 "User's Guide," version 3.0, pages 574-75


KBCategory: kbusage
KBSubcategory:

Additional reference words: 7.00 3.0 3.00 4.0 4.00 4.0a 4.00a 5.00


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: August 20, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.