How to Calculate Miles in Excel

Montreal Jul 09, 2026

Calculating miles in Excel is a straightforward task, especially if you're working with data that involves distance measurements. Excel provides several built-in functions that can help you perform these calculations with ease. In this guide, we'll explore how to calculate miles in Excel using simple formulas and functions, ensuring accurate results every time.

How to Calculate Gas Mileage in Excel | Techwalla
How to Calculate Gas Mileage in Excel | Techwalla

Before we dive into the calculations, let's assume you have a dataset where you need to convert kilometers to miles. For instance, you might have a column of distances in kilometers (let's say Column A, starting from A2), and you want to convert these into miles (which will be in Column B, starting from B2).

Excel IFTA Calculator for Miles and Gallons per State
Excel IFTA Calculator for Miles and Gallons per State

Using the Conversion Factor

One of the simplest ways to calculate miles in Excel is by using the conversion factor. We know that 1 kilometer is approximately equal to 0.621371 miles. So, to convert kilometers to miles, we can multiply the kilometer value by this conversion factor.

Gas Mileage Log and Calculator
Gas Mileage Log and Calculator

Here's how you can do this in Excel:

Manual Conversion

Mileage Log Excel Spreadsheet
Mileage Log Excel Spreadsheet

In cell B2, enter the following formula: `=A2*0.621371`. This will convert the kilometer value in cell A2 to miles in cell B2.

To apply this formula to the entire column, simply drag the small square in the bottom-right corner of cell B2 down to the last cell in column B that contains data. This will automatically calculate the miles for each kilometer value in the corresponding row.

Using a Named Range

Mileage Log Excel Spreadsheet
Mileage Log Excel Spreadsheet

For a more efficient approach, you can create a named range for the conversion factor. This way, you can easily update the factor if needed, and it makes your formulas more readable.

To create a named range, go to the Formulas tab, click on Name Manager, then click New. In the New Name dialog box, enter `ConversionFactor` as the name and `0.621371` as the Refers to value. Click OK.

Now, you can update your formula in cell B2 to `=A2*ConversionFactor`. This way, if the conversion factor changes in the future, you only need to update it in one place.

a notebook with microsoft excel written on it
a notebook with microsoft excel written on it

Using the CONVERT Function

Another way to convert kilometers to miles in Excel is by using the CONVERT function. This function is particularly useful when you want to convert units other than kilometers to miles, as it supports a wide range of units.

ms excel formula
ms excel formula
Editable Mileage Tracker: Google Sheets & Excel Template
Editable Mileage Tracker: Google Sheets & Excel Template
Project Milestone Chart Using Excel | MyExcelOnline
Project Milestone Chart Using Excel | MyExcelOnline
3 Crazy Microsoft Excel Formulas That Are Extremely Useful
3 Crazy Microsoft Excel Formulas That Are Extremely Useful
Printable Mileage Calculator
Printable Mileage Calculator
SWITCH Formula in Excel | MyExcelOnline
SWITCH Formula in Excel | MyExcelOnline
Simplified Editable Mileage Tracker for Google Sheets & Excel
Simplified Editable Mileage Tracker for Google Sheets & Excel
Trucking Business Startup Calculator | Break-Even, Profit per Mile, 12-Month Forecast (Excel & Google Sheets)
Trucking Business Startup Calculator | Break-Even, Profit per Mile, 12-Month Forecast (Excel & Google Sheets)
the top 26 excel formulas are displayed in this screenshoter's guide
the top 26 excel formulas are displayed in this screenshoter's guide
Excel Sum Formula Examples, Excel Sum Formula Guide, Excel Spreadsheet Learning, Excel For Business Data Management, Excel Spreadsheet Formulas, Excel For Business Management, How To Assign Serial Numbers In Excel, Excel Spreadsheet Skills, Excel Sumproduct Guide
Excel Sum Formula Examples, Excel Sum Formula Guide, Excel Spreadsheet Learning, Excel For Business Data Management, Excel Spreadsheet Formulas, Excel For Business Management, How To Assign Serial Numbers In Excel, Excel Spreadsheet Skills, Excel Sumproduct Guide
Track Business Miles Easily – Simple Mileage Log for Self-Employed
Track Business Miles Easily – Simple Mileage Log for Self-Employed
How to use frequency formula in excel
How to use frequency formula in excel
UK Business Mileage Tracker, Monthly Expenses Claim Form in Excel
UK Business Mileage Tracker, Monthly Expenses Claim Form in Excel
Microsoft Excel Cheat Sheet | Essential Formulas, Shortcuts & Productivity Tips
Microsoft Excel Cheat Sheet | Essential Formulas, Shortcuts & Productivity Tips
Mileage Log Excel, Mileage Calculator, Mileage Form, Mileage Tracker, Mileage Tracking, Travel Chart, Miles Traveled, Vehicle Mileage Excel - Etsy
Mileage Log Excel, Mileage Calculator, Mileage Form, Mileage Tracker, Mileage Tracking, Travel Chart, Miles Traveled, Vehicle Mileage Excel - Etsy
how to calculate hours worked
how to calculate hours worked
101 best key excel formulas & functions examples
101 best key excel formulas & functions examples
how to create a sum formula in excel and wordpress - infographical poster
how to create a sum formula in excel and wordpress - infographical poster
The Mileage & Maintenance Tracker Excel Spreadsheet | Expense Log | Vehicle Tracking Calculator
The Mileage & Maintenance Tracker Excel Spreadsheet | Expense Log | Vehicle Tracking Calculator
the top 20 new excel formulas are displayed in this screenshoter's image
the top 20 new excel formulas are displayed in this screenshoter's image

Here's how you can use the CONVERT function to convert kilometers to miles:

Using the CONVERT Function

In cell B2, enter the following formula: `=CONVERT(A2,"km","mi")`. This will convert the kilometer value in cell A2 to miles in cell B2.

To apply this formula to the entire column, simply drag the small square in the bottom-right corner of cell B2 down to the last cell in column B that contains data.

The CONVERT function also allows you to convert other units to miles. For example, to convert feet to miles, you can use the formula `=CONVERT(A2,"ft","mi")`.

Using the CONVERT Function with a Named Range

Similar to the previous method, you can create a named range for the "mi" unit. This way, you can easily update the unit if needed, and it makes your formulas more readable.

To create a named range, go to the Formulas tab, click on Name Manager, then click New. In the New Name dialog box, enter `MilesUnit` as the name and `"mi"` as the Refers to value. Click OK.

Now, you can update your formula in cell B2 to `=CONVERT(A2,"km",MilesUnit)`. This way, if the unit changes in the future, you only need to update it in one place.

In conclusion, calculating miles in Excel is a breeze with the right formulas and functions. Whether you're using the conversion factor, the CONVERT function, or a combination of both, you can easily convert kilometers to miles and other units with just a few clicks. Happy calculating!