How to Calculate Degrees Minutes Seconds in Excel
Degrees, minutes, and seconds (DMS) is a system of measuring angles commonly used in navigation, astronomy, and geography. This guide explains how to work with DMS in Excel, including conversion formulas, practical examples, and a built-in calculator.
What is Degrees Minutes Seconds (DMS)?
Degrees, minutes, and seconds (DMS) is an alternative to decimal degrees for measuring angles. One degree is divided into 60 minutes, and each minute is divided into 60 seconds. This system is particularly useful in fields like surveying, navigation, and cartography where precise angular measurements are required.
For example, 45°30'15" means 45 degrees, 30 minutes, and 15 seconds. In decimal degrees, this would be 45.504167°.
Why Use DMS in Excel?
Excel is a powerful tool for working with DMS data, especially when dealing with geographic coordinates, astronomical observations, or survey measurements. Excel's formulas allow you to convert between DMS and decimal degrees, perform calculations, and format results for clarity.
Excel Formulas for DMS Conversion
Excel provides several functions to work with DMS data. The most useful are:
1. Converting DMS to Decimal Degrees
To convert degrees, minutes, and seconds to decimal degrees, use the following formula:
Where:
- DEGREES is the degrees value
- MINUTES is the minutes value
- SECONDS is the seconds value
2. Converting Decimal Degrees to DMS
To convert decimal degrees to DMS, use these formulas:
Minutes = INT((DECIMAL_DEGREES - Degrees) * 60)
Seconds = ((DECIMAL_DEGREES - Degrees) * 60 - Minutes) * 60
Where DECIMAL_DEGREES is the decimal degrees value you want to convert.
3. Formatting DMS in Excel
To display DMS values properly, you can use Excel's custom number formatting. Select the cells containing your DMS values and apply the following custom format:
This will display values in the format of degrees, minutes, and seconds.
Step-by-Step Guide in Excel
Follow these steps to work with DMS in Excel:
Step 1: Enter Your DMS Data
Create a table with columns for degrees, minutes, and seconds. Enter your DMS values in these columns.
Step 2: Convert DMS to Decimal Degrees
In a new column, use the formula to convert DMS to decimal degrees:
Where A2 is the degrees cell, B2 is the minutes cell, and C2 is the seconds cell.
Step 3: Convert Decimal Degrees to DMS
If you have decimal degrees and want to convert them to DMS, use these formulas in separate columns:
Minutes: =INT((A2 - INT(A2)) * 60)
Seconds: =((A2 - INT(A2)) * 60 - INT((A2 - INT(A2)) * 60)) * 60
Step 4: Format Your Results
Select the cells containing your DMS values and apply the custom format 0°00'00" to display them properly.
Step 5: Perform Calculations
Once your data is properly formatted, you can perform calculations with DMS values just like any other numerical data in Excel.
Worked Examples
Here are some practical examples of working with DMS in Excel:
Example 1: Converting DMS to Decimal Degrees
Suppose you have the DMS value 35°45'30". To convert this to decimal degrees:
Example 2: Converting Decimal Degrees to DMS
If you have the decimal degrees value 52.983333°, you can convert it to DMS as follows:
Minutes: =INT((52.983333 - 52) * 60) = 59'
Seconds: =((52.983333 - 52) * 60 - 59) * 60 ≈ 0"
So, 52.983333° is equivalent to 52°59'0".
Example 3: Calculating with DMS
If you need to calculate the difference between two DMS values, first convert both to decimal degrees, perform the calculation, and then convert the result back to DMS if needed.