Excel Formula to Convert Latitude and Longitude to Decimal Degrees

📅 Jan 22, 2026 📝 Sarah Miller

Manually converting coordinate datasets from Degrees, Minutes, Seconds (DMS) to Decimal Degrees in Excel is notoriously tedious and error-prone. While securing standard funding sources-such as federal geospatial grants or municipal development budgets-is critical to launching mapping initiatives, project success ultimately hinges on data accuracy.

Utilizing automated Excel formulas grants your team immediate analytical efficiency. However, this process operates under the stipulation that your raw DMS strings maintain a standardized; For example, accurately converting a coordinate like 40° 26' 46" N into its decimal equivalent of 40.4461 requires strict structural consistency. Below, we examine the precise mathematical formulas and string-parsing functions needed to automate this workflow.

Excel Formula to Convert Latitude and Longitude to Decimal Degrees

Excel Formula To Convert Latitude Longitude With Decimal Degrees

Geographic coordinate data is foundational to modern mapping, GIS analysis, logistics, and data visualization. However, coordinates often arrive in formats that are difficult to work with. The two most common formats are Degrees, Minutes, Seconds (DMS) (e.g., 40° 26' 46" N) and Decimal Degrees (DD) (e.g., 40.44611). While DMS is highly human-readable and standard in navigation, computers, databases, and mapping tools like Google Maps and ArcGIS require Decimal Degrees to perform calculations.

In this comprehensive guide, we will explore how to write Excel formulas to convert latitude and longitude between Decimal Degrees and Degrees, Minutes, Seconds. We will cover formulas for parsed multi-column data, complex single-string conversions, and the reverse conversion process.


Understanding the Coordinate Systems

Before writing the formulas, it is important to understand the math behind the conversion. The relationship between degrees, minutes, and seconds is highly similar to hours, minutes, and seconds of time:

  • 1 Degree is equal to 60 Minutes (').
  • 1 Minute is equal to 60 Seconds (").
  • Therefore, 1 Degree is equal to 3,600 Seconds (60 * 60).

To convert DMS to Decimal Degrees manually, the formula is:

Decimal Degrees = Degrees + (Minutes / 60) + (Seconds / 3600)

Additionally, we must account for hemispheres. Northern and Eastern coordinates are positive numbers, while Southern and Western coordinates are represented as negative numbers in Decimal Degrees.


Scenario 1: Converting DMS to Decimal Degrees (Multi-Column Format)

The easiest scenario to handle in Excel is when your DMS coordinates are already parsed into separate columns: Degrees, Minutes, Seconds, and Direction (N, S, E, W).

The Excel Formula

Assuming your data is set up in row 2 as follows:

  • Column A (Degrees): 40
  • Column B (Minutes): 26
  • Column C (Seconds): 46
  • Column D (Direction): N

Enter the following formula in Column E (Decimal Degrees):

=IF(OR(D2="S", D2="W"), -1, 1) * (A2 + (B2/60) + (C2/3600))

How this Formula Works:

  1. IF(OR(D2="S", D2="W"), -1, 1): This checks if the hemisphere direction is South (S) or West (W). If it is, the result is multiplied by -1 to make the decimal degree coordinate negative. Otherwise, it multiplies by 1 (keeping it positive).
  2. (A2 + (B2/60) + (C2/3600)): This takes the integer degrees, adds the minutes divided by 60, and adds the seconds divided by 3,600.

Scenario 2: Converting DMS to Decimal Degrees (Single-String Format)

Often, GPS trackers or raw datasets export coordinates in a single text string within a single cell, formatted like this: 40° 26' 46" N. Converting this requires parsing the text string in Excel using string manipulation formulas such as LEFT, MID, FIND, and SUBSTITUTE.

The Parse-and-Convert Formula

Assuming your single-string coordinate is in cell A2 (e.g., 40°26'46"N or with spaces like 40° 26' 46" N):

=IF(OR(RIGHT(TRIM(A2),1)="S", RIGHT(TRIM(A2),1)="W"), -1, 1) * 
(LEFT(A2, FIND("°", A2) - 1) 
+ MID(A2, FIND("°", A2) + 1, FIND("'", A2) - FIND("°", A2) - 1)/60 
+ MID(A2, FIND("'", A2) + 1, FIND(CHAR(34), A2) - FIND("'", A2) - 1)/3600)

Breaking Down the Complex String Formula:

  • Direction Check: RIGHT(TRIM(A2),1) extracts the very last character (N, S, E, or W) to determine if the coordinate should be positive or negative.
  • Extracting Degrees: LEFT(A2, FIND("°", A2) - 1) finds the position of the degree symbol (°) and extracts all characters to its left.
  • Extracting Minutes: MID(A2, FIND("°", A2) + 1, FIND("'", A2) - FIND("°", A2) - 1) extracts the text between the degree symbol (°) and the single quote/minute symbol (').
  • Extracting Seconds: MID(A2, FIND("'", A2) + 1, FIND(CHAR(34), A2) - FIND("'", A2) - 1) extracts the text between the single quote (') and the double quote symbol ("). In Excel, CHAR(34) is used to safely represent a double quotation mark inside a formula to avoid syntax errors.

Note: Ensure your source data uses standard symbols (°, ', and "). If it uses different characters (such as curly quotes or two single quotes ''), replace those symbols in the formula or run a quick Find & Replace (Ctrl + H) on your data first.


Scenario 3: Converting Decimal Degrees (DD) to DMS

If you have decimal coordinates (such as -122.4194) and need to convert them back to the traditional, human-readable DMS format (122° 25' 9.84" W), you will need a combination of mathematical operations and string concatenation.

Step-by-Step Conversion Logic

  1. Degrees: Take the absolute integer portion of the decimal number.
  2. Minutes: Multiply the fractional remainder of the decimal degree by 60, then extract the integer portion of that result.
  3. Seconds: Take the remaining fractional portion of the minutes and multiply it by 60.
  4. Direction: Determine the letter prefix or suffix based on whether the input value is positive or negative.

The Excel Formula (For Latitude)

Assuming your Decimal Degree coordinate is in cell A2:

=INT(ABS(A2)) & "° " & 
INT((ABS(A2)-INT(ABS(A2)))*60) & "' " & 
ROUND(((ABS(A2)-INT(ABS(A2)))*60 - INT((ABS(A2)-INT(ABS(A2)))*60))*60, 2) & """ " & 
IF(A2>=0, "N", "S")

The Excel Formula (For Longitude)

To convert longitude (where positive values are East and negative values are West), use the same formula but change the final direction indicator:

=INT(ABS(A2)) & "° " & 
INT((ABS(A2)-INT(ABS(A2)))*60) & "' " & 
ROUND(((ABS(A2)-INT(ABS(A2)))*60 - INT((ABS(A2)-INT(ABS(A2)))*60))*60, 2) & """ " & 
IF(A2>=0, "E", "W")

Formula breakdown:

  • INT(ABS(A2)): Strips away the negative sign and extracts only the whole degree number.
  • INT((ABS(A2)-INT(ABS(A2)))*60): Isoles the decimal portion, multiplies it by 60, and grabs the whole integer as the minutes value.
  • ROUND(..., 2): Isolates the remaining fractional decimal portion from the minutes calculation, multiplies it by 60 to convert it into seconds, and rounds the result to 2 decimal places.
  • & """ " &: Concatenates a literal double quote symbol to represent seconds, followed by a space.
  • IF(A2>=0, "N", "S"): Appends the correct hemisphere character based on whether the number is positive or negative.

Comparison Table: Coordinate Formats

Location DMS (Degrees, Minutes, Seconds) Decimal Degrees (Latitude, Longitude)
Statue of Liberty, NY 40° 41' 21.2" N, 74° 2' 40.2" W 40.68922, -74.04450
Eiffel Tower, Paris 48° 51' 29.6" N, 2° 17' 40.2" E 48.85822, 2.29450
Sydney Opera House 33° 51' 31.2" S, 151° 12' 50.5" E -33.85867, 151.21403

Troubleshooting & Tips for Success

  • Watch Out for Non-Standard Characters: Sometimes copied web data uses decorative curly symbols (e.g., ' or ) instead of the standard straight ASCII quotes (' and "). If your formula returns a #VALUE! error, verify the symbols in your source cells match the characters inside your FIND formulas exactly.
  • Regional Settings: If you use a non-US edition of Excel, remember that your regional settings might require you to use semicolons (;) instead of commas (,) to separate arguments within your formulas.
  • Leading and Trailing Spaces: Always use the TRIM function on raw data if you encounter errors, as trailing blank spaces can break exact string extractions.

Conclusion

Excel formulas offer an efficient way to clean, parse, and convert coordinate systems without relying on third-party mapping software. Whether you are dealing with well-structured multi-column values or complex string inputs, these math and text parsing formulas ensure that your geographic datasets are structured correctly and ready for import into any database or GIS platform.

Disclaimer:
The documents and templates provided on this page are for informational and illustrative purposes only. They do not constitute professional, legal, or financial advice, and should not be relied upon as such. Because individual circumstances and regulatory requirements vary, these materials may not be suitable for your specific needs. We recommend consulting with a qualified professional before adapting or using any of these examples for official or commercial purposes.