To convert latitude and longitude written as degrees, minutes, and seconds (DMS) into decimal degrees in Excel, use a formula that adds the degrees, minutes divided by 60, and seconds divided by 3600, then applies the sign based on the hemisphere. For example, if cell A1 contains 40° 26' 46" N, a formula can extract the numbers and return 40.4461. The exact formula depends on how your data is formatted, but the math is always the same: decimal degrees = degrees + (minutes/60) + (seconds/3600).

What You'll Need

  • Excel (any modern version, desktop or web) with your latitude and longitude data in separate cells.
  • Your coordinates in a consistent format, ideally with degrees, minutes, and seconds clearly separated (e.g., 40° 26' 46" N or 40 26 46 N).
  • Basic familiarity with Excel formulas and functions like MID, FIND, VALUE, and IF.

Step-by-Step

  1. Inspect your data format. Look at a few cells to see how degrees, minutes, and seconds are separated. Common formats include spaces, degree symbols (°), apostrophes ('), and quotation marks ("). Note whether the hemisphere (N/S/E/W) is at the end or beginning. This determines how you extract the numbers.
  2. Extract the degrees. Use LEFT and FIND to get the degrees portion. For a cell A2 with format 40° 26' 46" N, the formula =VALUE(LEFT(A2, FIND("°", A2)-1)) returns 40. If your data uses spaces instead of symbols, adjust the delimiter accordingly.
  3. Extract the minutes. Use MID and FIND to get the minutes. For the same format, =VALUE(MID(A2, FIND("°", A2)+1, FIND("'", A2)-FIND("°", A2)-1)) returns 26. Trim any spaces with TRIM if needed.
  4. Extract the seconds. Similarly, =VALUE(MID(A2, FIND("'", A2)+1, FIND("""", A2)-FIND("'", A2)-1)) returns 46. Again, use TRIM to remove extra spaces.
  5. Combine into decimal degrees. In a new cell, write =degrees + minutes/60 + seconds/3600, replacing the parts with the formulas from steps 2–4. For the example, =40 + 26/60 + 46/3600 gives 40.4461.
  6. Apply the sign for hemisphere. If the coordinate is South or West, the decimal should be negative. Check the last character of the cell: =IF(RIGHT(TRIM(A2),1)="S", -1, IF(RIGHT(TRIM(A2),1)="W", -1, 1)). Multiply your decimal result by this sign. So the full formula becomes =(40 + 26/60 + 46/3600) * IF(RIGHT(TRIM(A2),1)="S", -1, IF(RIGHT(TRIM(A2),1)="W", -1, 1)).
  7. Copy down. Drag the formula down to apply to all rows. Adjust delimiters if your data uses different symbols (e.g., commas or spaces).
  8. Verify a few results. Use an online converter or known reference to check that the decimal values match. A difference of a few thousandths is usually due to rounding in the seconds.

Common Mistakes

  • Forgetting the negative sign for South and West. Decimal degrees use negative values for S and W. Omitting this puts your points in the wrong hemisphere.
  • Inconsistent delimiters. If some cells use spaces and others use symbols, a single formula will fail. Standardize your data first or use a more flexible formula with SUBSTITUTE.
  • Not converting text to numbers. Functions like LEFT return text; wrap them in VALUE to perform arithmetic.
  • Extra spaces. Spaces around numbers cause errors. Use TRIM on extracted parts.
  • Assuming a fixed format. Coordinates may have varying digits (e.g., 5° vs 40°) or decimal seconds. Test your formula on several rows.

Tips

  • If your data is already in decimal degrees but stored as text, use VALUE or multiply by 1 to convert.
  • For large datasets, consider using Power Query to split columns by delimiter, then apply the math.
  • Use ROUND to limit decimal places to 6, which is about 0.1 meter precision.
  • Keep a helper column for the hemisphere sign to simplify troubleshooting.
  • Test your formula on a copy of the data before applying to the original.

Troubleshooting

If you get a #VALUE! error, check that all extracted parts are numeric and that delimiters exist in the cell. If the result is way off, verify the order of degrees, minutes, seconds (some formats put seconds first). If the sign is wrong, confirm the hemisphere letter is the last character (or adjust the RIGHT formula). If your data uses commas as decimal separators (common in some regions), you may need to replace commas with periods before calculation.

Frequently Asked Questions

Can I convert decimal degrees back to DMS in Excel?

Yes. Use INT for degrees, then multiply the fractional part by 60 and take INT for minutes, and multiply the remaining fraction by 60 for seconds. Concatenate with symbols and hemisphere.

What if my coordinates are in one cell separated by a comma?

Use LEFT, MID, and FIND with the comma as the delimiter, or use Data > Text to Columns to split into separate cells first.

Do I need to use the degree symbol in the formula?

Only if your data contains it. If your data uses spaces, replace the symbol in FIND with a space character.

How do I handle coordinates with decimal minutes (e.g., 40° 26.767' N)?

Treat the decimal minutes as minutes and skip the seconds part: decimal = degrees + minutes/60. Adjust the extraction to capture the decimal point.

Can I use a single formula for both latitude and longitude?

Yes, if the format is identical. The hemisphere sign logic handles N/S/E/W, so the same formula works for both as long as the letter is at the end.

Why is my result negative when it should be positive?

Check the hemisphere letter. If it's N or E, the sign multiplier should be 1. Ensure the RIGHT function is reading the correct character (use TRIM to remove trailing spaces).