Formula Errors

Format Negative Degrees, Minutes, and Seconds in Excel

Adam DavisAdam Davis Nov 27, 2026 870 views

Question details

Convert negative decimal degrees to a correctly signed degrees, minutes, and seconds result and convert it back to decimal degrees.

Format Negative Degrees, Minutes, and Seconds in Excel
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".
Before you start

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.

Solution 1Recommended

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.

1
Calculate total seconds

In B4, enter =ROUND(ABS(A4)*3600,2) to calculate the rounded total seconds without the negative sign.

2
Format the DMS result

In C4, enter =IF(A4<0,"-","")&INT(B4/3600)&"°"&INT(MOD(B4,3600)/60)&"'"&TEXT(MOD(B4,60),"0.00")&CHAR(34).

3
Check the result

Enter -33.33 in A4 and check C4. It should display -33°19'48.00".

Calculate Absolute Components and Add the Sign Separately
Precision: The formatted result is rounded to two decimal places of seconds, so converting it back may not reproduce every decimal digit of the original value.
Work with DMS values in WPS

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. 1. Open a spreadsheet: Open WPS Spreadsheets and enter a decimal-degree value in A4.
  2. 2. Calculate total seconds: In B4, enter =ROUND(ABS(A4)*3600,2).
  3. 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. 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.
Format negative decimal degrees as signed DMS textRound total seconds before separating the componentsOpen and save Microsoft Excel XLSX filesUse a familiar spreadsheet interface
microsoft office alternative - wps office

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.