Mileage Log in Excel: Track Trips and Reimbursements
By ExcelReady TeamUpdated 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+
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:
| Column | What goes in it | Example |
|---|---|---|
| Date | The day of the trip | 1 Oct 2026 |
| Purpose | Why you made the trip | Client meeting |
| Type | Business or Personal | Business |
| Miles | Distance driven | 42 |
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:
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Date | Purpose | Type | Miles |
| 2 | 1 Oct 2026 | Client meeting | Business | 42 |
| 3 | 2 Oct 2026 | Office supplies | Business | 12.5 |
| 4 | 3 Oct 2026 | Weekend trip | Personal | 88 |
| 5 | 6 Oct 2026 | Site inspection | Business | 37.4 |
| 6 | 8 Oct 2026 | School run | Personal | 9 |
| 7 | 12 Oct 2026 | Airport pickup | Business | 51.2 |
| 8 | 15 Oct 2026 | Training day | Business | 23.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:
=F2-E2If 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:
=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:
=SUMIF(C2:C8,"Business",D2:D8)C2:C8is the column to check (Type)."Business"is what it must match. Text needs double quotes.D2:D8is 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.
=SUMIF(C2:C8,"Business",D2:D8)*G2This gives 111.689, which is not a real amount of money. Wrap it in ROUND to get exact cents:
=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):
=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:
- Log trips the same day. Writing them up weeks later leads to guesses.
- 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.
- Use real dates, not text. Type a date such as 1-Oct-2026 or use DATE, so SUMIFS can compare them.
- Keep one rate cell per period. If the rate changes mid-year, add a Rate column and multiply each row by its own rate.
- 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.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Miles | |||||||
| 2 | ||||||||
| 3 | Reimbursement | |||||||
| 4 | ||||||||
| 5 | ||||||||
| 6 | ||||||||
| 7 | ||||||||
| 8 | ||||||||
| 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
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.