How to Create Latitude Longitude Converter in Excel (2 Examples)

In the following two examples, we’ll use the sample dataset below to show the process of converting DMS to Decimal and Decimal to DMS.

excel latitude longitude converter


Example 1 – Converter of Latitude Longitude Degree, Minute, and Second to Decimal Values

The latitudes and longitudes are in DMS format. We will convert them into decimal values to create an Excel latitude-longitude converter.

Convert Latitude Longitude Degree, Minute, and Second to Decimal Values for making Excel latitude longitude converter


Step 1 – Using Text to Columns Option

We will use the Text to Columns option to separate the degrees, minutes, and seconds.

  • Enter 3 additional temporary columns – deg, min, sec.

Separate the degrees, minutes, and seconds in these new columns.

  • Select the range, and go to the Data tab >> Text to Columns.

  • In the Convert Text to Columns Wizard pop-up window, choose the Delimited option, click Next.

  • Select Space as the Delimiter, and click Next.

step 2

  • Choose the Column data format as General.
  • Enter the destination cell where you want the output (here, we have entered $C$4) and click Finish.

step 3

The degree, minute and second values will be separated into three different columns.

Convert Latitude Degree, Minute, and Second to Decimal Values for making Excel latitude longitude converter

Separate the values of the longitudes using the same procedure.


Step 2 – Omitting Symbols

  • To omit the degree, minute, and second symbols, insert 3 additional columns.

  • Select the range of the deg column, go to the Data tab >> Text to Columns.

text to columns

In the Convert Text to Columns Wizard, choose the Delimited option and click Next.

  • Select Other as the Delimiter and input ° (degree).
  • Click Next.

step 2

  • Select the second column from Data Preview and click on the Do not import column (skip).

skip column

  • Enter the destination cell where you want the output (we have entered $D$4), and press Finish.

Extract the values only from the deg column.

Convert Latitude Longitude Degree, Minute, and Second to Decimal Values for making Excel latitude longitude converter

Extract the minute and second values in the Min, and Sec columns.

Remove the degree, minute, and second symbols for the longitude coordinates following the same procedure.

After deleting the unnecessary columns (i.e. deg, min, and sec), enter the minus (-) symbol before the values of degrees, minutes, and seconds when the latitude is negative.

Omitting symbols to Decimal Values for making Excel latitude longitude converter


Step 3 – Applying Formulas

To calculate the decimal values.

  • Add the following formula in cell F4.
=C4+D4/60+E4/3600

C4 is the degree value, D4 is the minute value and E4 is the second value.

Applying formulas to Decimal Values for making Excel latitude longitude converter

  • Press ENTER and drag down the Fill Handle.

You will get the following decimal values of latitude coordinates.

Use the following formula to get the decimal values of the longitude coordinates.

=C13+D13/60+E13/3600

Convert Latitude Longitude Degree, Minute, and Second to Decimal Values for making Excel latitude longitude converter


Example 2 – Converting Latitude and Longitude Decimal Values to Degree, Minute, Second in Excel

We will convert the following decimal values to DMS format to make an Excel latitude-longitude converter.

Converting Latitude and Longitude Decimal Values to Degree, Minute, Second to create Excel Latitude Longitude converter


Step 1 – Replace Symbols

Replace the decimal points with ,. to split the values before the decimal points and after the points.

  • Select the range, and go to the Home tab >> Editing group >> Find & Select dropdown >> Replace.

replace symbols

In the Find and Replace dialog box, go to the Replace tab, and enter the following

Find what → ,
Replace with → ,.

  • Choose to Replace All.

The commas are replaced with ,.


Step 2 – Using Text to Columns Feature

To separate the values after and before the decimal points:

  • Select the range of the Lat D column and go to the Data tab >> Text to Columns.

Using Text to Columns feature to create Excel Latitude Longitude converter

In the Convert Text to Columns Wizard, choose the Delimited option and click Next.

  • Select Comma as the Delimiter and click on Next.

  • Enter the destination cell where you want the output (here, we have entered $C$4) and press Finish.

final step

The values before and after the decimal points will be split.

Separating values to create Excel Latitude Longitude converter


Step 3 – Using Formulas

  • Use the following formula to convert the remnant values of the Rem 1 column into minutes.
=D4*60

Using Formulas to create Excel Latitude Longitude converter

To extract the minutes from the values of the Rem 2 column, paste these results as values in the Rem 2 column.

  • Using the previous procedure, replace the comma(,) with a comma & full stop (,.)

replace

Use the Text to Columns option to separate the values before and after the decimal points.

using text to columns feature to create Excel Latitude Longitude converter

  • In the Sec column, use the following formula:
=G4*60

Use the following formula in cell I4:

=CONCATENATE(C4,"°"," ",D4,"'"," ",F4,"""")

The CONCATENATE function will combine the values with their respective symbols.

formula

  • Press ENTER, and drag down the Fill Handle tool.

It will output the desired DMS format.

Converting Latitude and Longitude Decimal Values to Degree, Minute, Second to create Excel Latitude Longitude converter

Repeat all of the procedures for latitude decimal coordinates to convert the following longitudinal coordinates.

The longitude coordinates will be in DMS format.

convert to DMS format to create Excel Latitude Longitude converter

Remove the unnecessary columns.


Download Practice Workbook


<< Go Back to Geocoding in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Tanjima Hossain
Tanjima Hossain

TANJIMA HOSSAIN is a marine engineer who enjoys working with Excel and VBA programming. For her, programming is a handy, time-saving tool for managing data, files, and online tasks. She's skilled in Rhino3D, Maxsurf C++, MS Office, AutoCAD, and Excel & VBA, going beyond the basics. She holds a B.Sc. in Naval Architecture & Marine Engineering from BUET and is now a content developer. In this role, she creates tech-focused content centred around Excel and VBA. Apart from... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo