Excel: Calculate Miles Between Two Addresses

Montreal Jul 09, 2026

In today's fast-paced world, calculating the distance between two addresses has become a common task, whether you're planning a road trip, optimizing delivery routes, or simply curious about the distance between two points. While there are numerous online tools and apps that can do this for you, Microsoft Excel provides a convenient and efficient way to calculate miles between two addresses using its built-in functions and add-ons.

Split Address With Excel Formulas - Contextures Blog
Split Address With Excel Formulas - Contextures Blog

Excel, with its powerful calculation capabilities and user-friendly interface, allows you to perform complex calculations with ease. By utilizing Excel's functions and add-ons, you can calculate the distance between two addresses accurately and quickly. In this article, we will guide you through the process of calculating miles between two addresses in Excel, step by step.

Gas Mileage Log and Calculator
Gas Mileage Log and Calculator

Using Excel's Built-in Functions

Excel's built-in functions, particularly the Haversine formula, can be used to calculate the distance between two geographical points. The Haversine formula is a bit complex, but Excel handles it seamlessly. Here's how you can use it:

a screen shot of the track mileage page
a screen shot of the track mileage page

1. First, ensure that your addresses are in two separate cells (e.g., A1 and B1).

2. In a new cell (e.g., C1), enter the following formula: `=ACOS(SIN(RADIANS(LAT1))*SIN(RADIANS(LAT2))+COS(RADIANS(LAT1))*COS(RADIANS(LAT2))*COS(RADIANS(LON1-LON2)))*3963.17`

How to Calculate Hours Between Two Times in Excel (6 Methods) - ExcelDemy
How to Calculate Hours Between Two Times in Excel (6 Methods) - ExcelDemy

3. Replace `LAT1` and `LON1` with the latitude and longitude of the first address (e.g., `=RADIANS(A1)` and `=RADIANS(B1)`).

4. Replace `LAT2` and `LON2` with the latitude and longitude of the second address (e.g., `=RADIANS(D1)` and `=RADIANS(E1)`).

5. Press Enter, and Excel will calculate the distance in miles.

Excel Formula Sheet: 50+ Essential Excel Functions from Basic to Advanced | vSkillNova
Excel Formula Sheet: 50+ Essential Excel Functions from Basic to Advanced | vSkillNova

Using the Excel Map Add-in

The Excel Map add-in provides a visual and interactive way to calculate distances between addresses. Here's how to use it:

1. First, ensure that your addresses are in two separate cells (e.g., A1 and B1).

141 Free Excel Templates and Spreadsheets | MyExcelOnline
141 Free Excel Templates and Spreadsheets | MyExcelOnline

2. Click on the 'Insert' tab in the Excel ribbon, then click on 'Map'.

3. In the 'Map' dialog box, select 'Address' as the data type, then click 'OK'.

the format calculator dialogg in windows 7 and 8 with options to select font or number
the format calculator dialogg in windows 7 and 8 with options to select font or number
the m s excel chart sheet
the m s excel chart sheet
the microsoft excel formula and calculator app
the microsoft excel formula and calculator app
the value function for an error in excel and excel - click to see if it is not
the value function for an error in excel and excel - click to see if it is not
Calculate Moving Average in Excel - How To - PakAccountants.com
Calculate Moving Average in Excel - How To - PakAccountants.com
Top 101 Excel Templates for Productivity
Top 101 Excel Templates for Productivity
How to Combine Multiple Data Sets in Microsoft Excel Using Power Query
How to Combine Multiple Data Sets in Microsoft Excel Using Power Query
Google Image Result for https://fis.uii.ac.id/weblog/wp-content/uploads/sites/11/2021/10/Ms-Excel.jpg
Google Image Result for https://fis.uii.ac.id/weblog/wp-content/uploads/sites/11/2021/10/Ms-Excel.jpg
FREE Tutorial - Excel Data Forms Mastery!
FREE Tutorial - Excel Data Forms Mastery!
How to merge and combine Excel spreadsheets into one
How to merge and combine Excel spreadsheets into one
an excel spreadsheet showing the time and date for each month in one column
an excel spreadsheet showing the time and date for each month in one column
the top ten basic ms excel formulas
the top ten basic ms excel formulas
Time Sheet Calculator in Excel
Time Sheet Calculator in Excel
How to Calculate Hours Worked and Overtime Using Excel Formula - ExcelDemy
How to Calculate Hours Worked and Overtime Using Excel Formula - ExcelDemy
an excel chart with the order date and sales person numbers highlighted in green on it
an excel chart with the order date and sales person numbers highlighted in green on it
Excel shortcuts
Excel shortcuts
Excel - how to create timesheets
Excel - how to create timesheets
#Excel #Tricks: Convert Numbers to Words
#Excel #Tricks: Convert Numbers to Words
Split the difference ✂️ Now rollled out in #Excel for Office 365
Split the difference ✂️ Now rollled out in #Excel for Office 365
101 Advanced Excel Formulas & Functions Examples
101 Advanced Excel Formulas & Functions Examples

4. In the 'Address' dialog box, select the cells containing your addresses (e.g., A1:B1), then click 'OK'.

5. Excel will create a map with markers for each address. Right-click on one of the markers, select 'Show Route', and Excel will calculate and display the distance between the two addresses.

Calculating Distances for Multiple Addresses

If you need to calculate distances between multiple addresses, you can use Excel's functions and add-ins to automate the process. Here's how:

1. Create a table with your addresses in two columns (e.g., A: Starting Address, B: Ending Address).

2. In a new column (e.g., C), enter the Haversine formula or use the Map add-in to calculate the distance between the first two addresses.

3. Copy the formula or the Map add-in's 'Show Route' function, and paste it into the cells below, adjusting the cell references as needed.

4. Excel will automatically calculate the distances for each pair of addresses in your table.

Displaying Results in a Table

To make your results more organized and easier to read, you can display them in a table. Here's how:

1. Select the cells containing your addresses and the calculated distances.

2. Click on the 'Home' tab in the Excel ribbon, then click on 'Format as Table'.

3. Choose a table style, then click 'OK'.

4. Excel will create a table with your data, making it easy to read and sort.

With these methods, you can efficiently calculate miles between two addresses in Excel, whether you're working with a single pair of addresses or a large list. Excel's powerful functions and add-ins make this task quick and straightforward, saving you time and effort. So, the next time you need to calculate distances, give Excel a try – you might be surprised at how easy and convenient it is!