Format Negative Degrees, Minutes, and Seconds in Excel
Question details
Convert negative decimal degrees to a correctly signed degrees, minutes, and seconds result and convert it back to decimal degrees.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet converts decimal-degree values into formatted degrees, minutes, and seconds.
- Observed behavior
- A negative input such as -33.33 produces incorrect components, such as -34°40'1.20".
Place the decimal-degree value in cell A4 and leave cells B4 and C4 available for the calculations. The formulas below use commas as argument separators; replace them with semicolons if your Excel regional settings require them.
Calculate Absolute Components and Add the Sign Separately
Use this method to format positive or negative decimal degrees while rounding seconds to two decimal places.
Rounding the absolute value to total seconds first allows seconds that round up to carry into the minutes or degrees. The final result is text, not a numeric degree value.
In B4, enter =ROUND(ABS(A4)*3600,2) to calculate the rounded total seconds without the negative sign.
In C4, enter =IF(A4<0,"-","")&INT(B4/3600)&"°"&INT(MOD(B4,3600)/60)&"'"&TEXT(MOD(B4,60),"0.00")&CHAR(34).
Enter -33.33 in A4 and check C4. It should display -33°19'48.00".

Convert the Formatted DMS Text Back to Decimal Degrees
Use this formula when C4 contains a result produced by the first solution and you need a numeric decimal-degree value.
Convert Negative Decimal Degrees in WPS Spreadsheets
Use formulas in WPS Spreadsheets to calculate absolute degrees, minutes, and seconds and add the negative sign separately.
- 1. Open a spreadsheet: Open WPS Spreadsheets and enter a decimal-degree value in A4.
- 2. Calculate total seconds: In B4, enter =ROUND(ABS(A4)*3600,2).
- 3. Create the DMS text: In C4, enter =IF(A4<0,"-","")&INT(B4/3600)&"°"&INT(MOD(B4,3600)/60)&"'"&TEXT(MOD(B4,60),"0.00")&CHAR(34).
- 4. Convert back if needed: Enter the reverse formula from the second solution in D4 to convert the text in C4 back to decimal degrees.

Frequently Asked Questions
Why does INT give the wrong degree component for a negative value?
INT rounds down toward negative infinity, so INT(-33.33) returns -34. Use INT on the absolute value and add the minus sign separately.
What is -33.33 decimal degrees in DMS?
It is -33°19'48.00". The minus sign applies to the entire angle, not just the degree component.
Can I calculate with the formatted DMS result?
The formatted result is text. Use the reverse formula in D4 to obtain a numeric decimal-degree value before performing calculations.
Why might the converted-back value differ slightly from the original?
The DMS formula rounds seconds to two decimal places. The reverse formula converts that rounded value, so some precision may be lost.




