ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Projects
  3. Mileage Log in Excel: Track Trips and Reimbursements

Mileage Log in Excel: Track Trips and Reimbursements

By ExcelReady Team·Updated November 2, 2026·7 min read

The short answer

A mileage log in Excel is a table with one row per trip: date, purpose, type (Business or Personal) and miles. Total the business miles with =SUMIF(C2:C8,"Business",D2:D8), multiply by your rate per mile in one locked cell, and wrap the result in ROUND(...,2) so the reimbursement is in exact cents.

Key takeaways

  • Log one trip per row with the same columns every time: date, purpose, type and miles.
  • Work out miles from odometer readings with =End-Start instead of typing them.
  • Keep the rate per mile in one cell and lock it with $ so every formula uses it.
  • SUMIF totals business miles, SUMIFS totals them by month, and ROUND keeps the money to two decimals.
On this page+
  1. What should a mileage log in Excel include?
  2. How to calculate miles from odometer readings
  3. How to total all your miles with SUM
  4. How to total business miles with SUMIF
  5. How to calculate the mileage reimbursement
  6. How to total mileage by month with SUMIFS
  7. Tips to keep your mileage log accurate
  8. Practise it

A mileage log in Excel is a simple table: one row per trip, with the date, the purpose, whether it was business or personal, and the miles driven. Three formulas turn it into a reimbursement claim: SUMIF totals the business miles, a rate cell turns miles into money, and ROUND keeps the answer in exact cents. This guide is for anyone who drives for work and needs a clean record for an employer or a tax return.

What should a mileage log in Excel include?#

A good mileage log records enough detail that someone else could check each trip. Most employers and tax rules ask for the same basics:

ColumnWhat goes in itExample
DateThe day of the trip1 Oct 2026
PurposeWhy you made the tripClient meeting
TypeBusiness or PersonalBusiness
MilesDistance driven42

You can add From and To columns, or Start and End odometer readings, if your employer asks for them. Keep one trip per row and never leave the Type column empty, because the totals depend on it. Check your own employer's or tax authority's rules for exactly what they need you to record.

Here is the sample log used in this guide, in A1:D8:

ABCD
1DatePurposeTypeMiles
21 Oct 2026Client meetingBusiness42
32 Oct 2026Office suppliesBusiness12.5
43 Oct 2026Weekend tripPersonal88
56 Oct 2026Site inspectionBusiness37.4
68 Oct 2026School runPersonal9
712 Oct 2026Airport pickupBusiness51.2
815 Oct 2026Training dayBusiness23.6

To stop typos such as "Busines", add a drop-down list to the Type column with Data > Data Validation > List and the source Business,Personal.

How to calculate miles from odometer readings#

If you write down the odometer (the car's distance counter) at the start and end of each trip, let Excel do the subtraction. Put Start in one column and End in the next, then subtract:

Excel formula
=F2-E2

If E2 holds 15,230 and F2 holds 15,272, the result is 42 miles. Type the formula once in the first row, then fill it down (Windows: Ctrl+D; Mac: ⌘D). A negative number means the two readings were swapped. A huge number usually means a typo in one reading, so scan the column for anything unusual.

How to total all your miles with SUM#

The total of every trip, business and personal, is a plain SUM:

Excel formula
=SUM(D2:D8)

The result is 263.7 miles. You can also select D9 and press AutoSum (Windows: Alt+=; Mac: ⌘⇧T) to write the same formula. This number is useful for checking your log against the car's odometer at the end of the month. The SUM lesson covers ranges and AutoSum if you are new to it.

How to total business miles with SUMIF#

Only business trips are reimbursed, so add up the miles where the Type is Business. SUMIF checks one column and adds the matching numbers from another:

Excel formula
=SUMIF(C2:C8,"Business",D2:D8)
  • C2:C8 is the column to check (Type).
  • "Business" is what it must match. Text needs double quotes.
  • D2:D8 is the column to add (Miles).

The result is 166.7 miles: 42 + 12.5 + 37.4 + 51.2 + 23.6. Swap "Business" for "Personal" and you get 97 personal miles. Together they make the 263.7 total, which is a quick way to check that no row has a blank or misspelled Type. The same pattern works for any category, as in summing by category in Excel.

How to calculate the mileage reimbursement#

Put the rate per mile in its own cell, then multiply the business miles by it. In this log, G2 holds the example rate 0.67. Use the rate that your employer or tax authority actually sets for the period, because official rates change.

Excel formula
=SUMIF(C2:C8,"Business",D2:D8)*G2

This gives 111.689, which is not a real amount of money. Wrap it in ROUND to get exact cents:

Excel formula
=ROUND(SUMIF(C2:C8,"Business",D2:D8)*G2,2)

The result is 111.69. The 2 means two decimal places. Formatting a cell to show two decimals only hides the extra digits, and they still count when you add many claims together. ROUND changes the value itself, so the total matches the claim form. See ROUND, ROUNDUP and ROUNDDOWN explained or the ROUND function guide for the details.

If you want the amount on every row instead, add a column with =ROUND(D2*$G$2,2) and fill it down. The $ signs lock the rate cell so every row uses G2. Without them, the next row would look at G3, which is empty, and show 0.

How to total mileage by month with SUMIFS#

A monthly claim needs the business miles between two dates. SUMIFS handles several conditions at once. If I2 holds the first day of the month (1 Oct 2026):

Excel formula
=SUMIFS(D2:D8,C2:C8,"Business",A2:A8,">="&I2,A2:A8,"<"&EDATE(I2,1))

This adds miles where the Type is Business, the date is on or after 1 October, and the date is before 1 November. EDATE(I2,1) moves the date forward one month. The result is 166.7, because every trip in the sample is in October. Put more month start dates below I2, lock the ranges with $, and fill down to build a month-by-month summary. The SUMIFS function guide explains each argument, and how to sum by month in Excel shows other ways to do it.

Tips to keep your mileage log accurate#

A mileage log is only useful if you can trust it. These habits help:

  1. Log trips the same day. Writing them up weeks later leads to guesses.
  2. Turn the range into a table with Ctrl+T (Mac: ⌘T). New rows are then picked up by formulas that use the table's columns.
  3. Use real dates, not text. Type a date such as 1-Oct-2026 or use DATE, so SUMIFS can compare them.
  4. Keep one rate cell per period. If the rate changes mid-year, add a Rate column and multiply each row by its own rate.
  5. Check the totals. Business plus personal should equal the full SUM.

If you also track fuel, parking and tolls, the same layout works for an expense tracker in Excel, and a timesheet in Excel uses the same ideas for hours.

Practise it#

Try the exercise on this page: it combines SUMIF, a rate cell and ROUND in one formula. Then practise SUMIF in a live spreadsheet, where you type each formula and it checks it instantly, and practise rounding money to two decimals so your claims always add up.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Work out the reimbursement for business trips only. In G3, use SUMIF to add the Miles (D2:D8) where the Type (C2:C8) is Business, multiply by the rate in G2, and round to 2 decimals.

fx
ABCDEFGH
1
Date
Purpose
Type
Miles
2
46296
Client meeting
Business
42
Rate per mile
0.67
3
46297
Office supplies
Business
12.5
Reimbursement
4
46298
Weekend trip
Personal
88
5
46301
Site inspection
Business
37.4
6
46303
School run
Personal
9
7
46307
Airport pickup
Business
51.2
8
46310
Training day
Business
23.6
9
10
11

Tip: Start with SUMIF(C2:C8,"Business",D2:D8), multiply it by G2, then put ROUND( ... ,2) around the whole thing.

Practise this in a lesson

LessonSUM and AutoSumAdd up a column of numbers with SUM, then let AutoSum write the formula for you.LessonSUMIFAdd up only the numbers that meet a condition, with and without a separate sum range.LessonROUND, ROUNDUP and ROUNDDOWNControl decimals properly, which isn't the same as formatting.Function guideSUMIFSTotal values that meet several conditions with SUMIFS. Examples by region, month and number range, common errors, and live practice.Function guideROUNDRound to decimals, whole numbers or the nearest thousand with Excel's ROUND. Learn when formatting isn't enough, then practice live.

Frequently asked questions

How do I make a mileage log in Excel?

+

Create columns for Date, Purpose, Type and Miles, and add one row per trip. Then total the business miles with SUMIF and multiply by your rate per mile to get the reimbursement.

How do I calculate mileage reimbursement in Excel?

+

Multiply the business miles by the rate per mile, for example =ROUND(SUMIF(C2:C8,"Business",D2:D8)*$G$2,2). Keep the rate in its own cell so you only change it in one place.

How do I calculate miles from odometer readings in Excel?

+

Subtract the start reading from the end reading. If the start is in C2 and the end is in D2, type =D2-C2 and fill the formula down the column.

What rate per mile should I use?

+

Use the rate your employer or your tax authority sets for the period. Rates change, so check the current official figure and keep it in one cell that you can update.

Can I track kilometres instead of miles?

+

Yes. The formulas are the same. Just label the column Kilometres and use a rate per kilometre.

Sources

  • SUMIF function - Microsoft Support
  • SUMIFS function - Microsoft Support
  • ROUND function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 2, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. What should a mileage log in Excel include?
  2. How to calculate miles from odometer readings
  3. How to total all your miles with SUM
  4. How to total business miles with SUMIF
  5. How to calculate the mileage reimbursement
  6. How to total mileage by month with SUMIFS
  7. Tips to keep your mileage log accurate
  8. Practise it

Keep reading

Projects· 5 min read

Track Expenses by Category in Excel

To make an expense tracker in Excel, log one expense per row with its date, description, category and amount. Then total each category with SUMIF, for example =SUMIF(C:C,"Travel",E:E), and add a month condition with SUMIFS. A pivot table gives the same category and month totals in a few clicks, and both update when you add expenses.

Conditional math· 6 min read

How to Sum by Month in Excel With SUMIFS

To sum by month in Excel, put the first day of the month in a cell, such as D2, and use SUMIFS with two date conditions: =SUMIFS(B2:B8,A2:A8,">="&D2,A2:A8,"<="&EOMONTH(D2,0)). EOMONTH returns the last day of that month, so the formula adds every amount dated from the 1st to the month end. Fill it down for a monthly summary.

Math· 6 min read

How to Round Numbers in Excel (ROUND, ROUNDUP, ROUNDDOWN)

Use =ROUND(number, digits) to round to a set number of decimal places, so =ROUND(B2,2) turns 3.4567 into 3.46. ROUNDUP always rounds away from zero and ROUNDDOWN always rounds towards zero, using the same two arguments. Unlike number formatting, these functions change the stored value that later formulas use.

More on projects

  • Build a Monthly Budget in Excel
  • Build an Order Tracker in Excel
  • Calculate Hours Worked and Overtime in Excel
  • Build a Simple Payroll Calculator in Excel
  • Petty Cash Log in Excel With a Running Balance
  • Price List With Discounts and Tax in Excel
All projects articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free