How to determine average monthly milage/mpg?

charlesstricklin

Board Regular
Joined
May 6, 2013
Messages
88
Office Version
  1. 2010
Platform
  1. Windows
I'm trying to set a personal budget, but I'm having a hard time wrapping my head around how to determine the average monthly mileage and miles per gallon. I suppose it's mainly because the days in between fill-ups vary so much. Maybe I'm just being dense, but nevertheless, I'm struggling.

Given the following data:

OdometerGallonsDateMileage
2756809/28/130
277596.29910/5/13191
279346.39310/14/13175
2819610.15810/26/13262
284779.48211/9/13281
287841011/14/13307
291009.36311/22/13316
293499.27712/3/13249
296369.58812/12/13287
298608.75712/28/13224
299442.62212/31/1384
300925.6591/8/14148
302817.0081/19/14189

<!--StartFragment--> <colgroup><col width="65" span="4" style="width:65pt"> </colgroup><tbody>
<!--EndFragment--></tbody>

How would I go about figuring a) what my average MPG is, and b) what my average mileage is? Any help is appreciated.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi Charles. Put this formula in cell E3: =(A3-A2)/B3 and this formula in cell F3: =D3/(C3-C2). Then copy the formulae down to the last row with data. Column E will give you the miles/gallon and column F will give you the average miles travelled during that time period. I hope I interpreted what you wanted correctly.
 
Upvote 0
Average MPG28.67683(MAX(A:A)-MIN(A:A))/SUM(B:B)
Average Mileage/day24.00885(MAX(A:A)-MIN(A:A))/(MAX(C:C)-MIN(C:C))
Average Gallon/day0.837221SUM(B:B)/(MAX(C:C)-MIN(C:C))
Total(Mileage) since purchased2713MAX(A:A)-MIN(A:A)
Total Calendar days since purchased113MAX(C:C)-MIN(C:C)
Total Gallons94.606SUM(B:B)

<colgroup><col style="width: 197pt; mso-width-source: userset; mso-width-alt: 9358;" width="263"> <col style="width: 48pt;" width="64"> <col style="width: 215pt; mso-width-source: userset; mso-width-alt: 10183;" width="286"> <tbody>
</tbody>





I'm trying to set a personal budget, but I'm having a hard time wrapping my head around how to determine the average monthly mileage and miles per gallon. I suppose it's mainly because the days in between fill-ups vary so much. Maybe I'm just being dense, but nevertheless, I'm struggling.

Given the following data:

Odometer
Gallons
Date
Mileage
27568
9/28/13
27759
6.299
10/5/13
191
27934
6.393
10/14/13
175
28196
10.158
10/26/13
262
28477
9.482
11/9/13
281
28784
10
11/14/13
307
29100
9.363
11/22/13
316
29349
9.277
12/3/13
249
29636
9.588
12/12/13
287
29860
8.757
12/28/13
224
29944
2.622
12/31/13
84
30092
5.659
1/8/14
148
30281
7.008
1/19/14
189

<tbody>
</tbody>

How would I go about figuring a) what my average MPG is, and b) what my average mileage is? Any help is appreciated.
 
Upvote 0
I rearranged the columns, added price/gallon and miles/gallon, and tried to revisualize everything, and here's what I came up with.

In October I averaged 27.83 mpg and traveled 628 miles.
In November I averaged 31.36 mpg and traveled 904 miles.
In December I averaged 28.6 mpg and traveled 844 miles.

I think what I'm having trouble with is the varying dates that I fill up. If I filled up the 1st of every month, I could accurately get the mileage and MPG for each month, but because I may wait a week or a few days into each month, those miles fall into the previous month.

Actually, that might not be a bad idea: Just make it a point to fill up the tank as soon as possible the first of every month.
 
Upvote 0
Average MPG28.67683(MAX(A:A)-MIN(A:A))/SUM(B:B)
Average Mileage/day24.00885(MAX(A:A)-MIN(A:A))/(MAX(C:C)-MIN(C:C))
Average Gallon/day0.837221SUM(B:B)/(MAX(C:C)-MIN(C:C))
Total(Mileage) since purchased2713MAX(A:A)-MIN(A:A)
Total Calendar days since purchased113MAX(C:C)-MIN(C:C)
Total Gallons94.606SUM(B:B)

<tbody>
</tbody>

I apologize... I'd missed this response when it was first posted. It's great! Thank you so much!
 
Upvote 0
Is it possible to find for the average gallons/day without having the Milage column?

Here's why I ask: I use an app for the iPhone called Car Care, and it exports data for gas entries like so:

ABCDEFGHIHKL
OdometerEntry TypeEntry SubtypeQuantityQuantity UnitsIs Full TankResetCurrencyPriceNotesDateLocation
135141GasRegular8.851gal10$2.799-10/22/14 13:0930.218164, -97.689125
234916GasRegular8.726gal10$2.929-10/10/14 20:0730.386377, -97.694809
334656GasRegular8.547gal10$3.099-10/5/14 10:3232.360996, -97.419258
434356GasRegular5.314gal10$3.069-10/1/14 14:0130.386057, -97.694641
534198GasRegular9.378gal10$3.069-9/25/14 23:0330.386150, -97.695374
633931GasRegular9.718gal10$3.199-9/14/14 13:5530.443686, -97.741646
733650GasRegular7.888gal10$3.219-9/1/14 8:2430.408522, -97.698151
833440GasRegular9.438gal10$3.169-8/16/14 19:1830.386383, -97.695534
933187GasRegular4.878gal10$3.299-8/1/14 19:2930.424030, -97.671234
1033057GasRegular9.095gal10$3.299-7/23/14 3:4830.386169, -97.694801
1132828GasRegular8.576gal10$3.429-7/1/14 0:5030.408087, -97.678246
1232605GasRegular8.906gal10$3.369-6/16/14 11:3830.218279, -97.689339
1332379GasRegular6.565gal10$3.433-6/2/14 12:3430.408186, -97.696396
1432201GasRegular9.289gal10$3.399-5/17/14 19:3130.408266, -97.696533
1531941GasRegular9.021gal10$3.399-5/1/14 10:0530.408264, -97.696190
1631679GasRegular8.904gal10$3.369-4/14/14 15:13
1731427GasRegular0.638gal10$3.299-4/1/14 19:1730.409906, -97.716026
1831412GasRegular9.52gal10$3.329-3/31/14 15:3530.414553, -97.746513
1931148GasRegular9.397gal10$3.099-3/14/14 21:15
2030889GasRegular2.884gal10$3.199-3/1/14 10:00
2130800GasRegular9.59gal10$3.129-2/22/14 19:1830.386127, -97.695267
2230522GasRegular9.872gal10$3.039-2/10/14 12:0430.407784, -97.678207
2330281GasRegular7.008gal10$3.049-1/19/14 13:5930.443974, -97.743088
2430092GasRegular5.659gal10$3.059-1/8/14 8:3130.218386, -97.689247
2529944GasRegular2.622gal10$3.079-12/31/13 19:3430.440369, -97.669991
2629860GasRegular8.757gal10$3.099-12/28/13 19:1830.386106, -97.695290
2729636GasRegular9.588gal10$3.129-12/12/13 21:2730.458389, -97.822784
2829349GasRegular9.277gal10$3.099-12/3/13 21:3830.386435, -97.695351
2929100GasRegular9.363gal10$3.099-11/22/13 21:02
3028784GasRegular10gal10$2.959-11/14/13 16:3029.731188, -95.382492
3128477GasRegular9.482gal10$2.879-11/9/13 19:3630.406054, -97.673576
3228196GasRegular10.158gal10$3.099-10/26/13 19:4330.330137, -97.715271
3327934GasRegular6.393gal10$2.999-10/14/13 2:0030.486288, -97.650986
3427759GasRegular6.299gal10$2.989-10/5/13 21:1930.518166, -97.651291
3527568GasRegular0gal10$0-9/28/13 9:43

<tbody>
</tbody>

I'd like to do the calculations with as little additional coding as possible. If the mileage column needs to be added, so be it, but it there's a way to do the calculation with only the data as provided, then that'd be preferable.

Thanks in advance for taking a look at this!
 
Last edited:
Upvote 0
You know what? Disregard that last question. I think I like just having the daily average, and I can extrapolate things from there.

Consider this thread closed. And again, thanks for the help, you guys are awesome!
 
Upvote 0
Hi Charles

I know you said thread closed but…..

You need to ensure that your date/time column is configured as date/time.

Call Col M “Mileage” and In cell M3: =a2-a3 and copy down

Call Col N “Monthly Miles” and in cell N2: =SUMPRODUCT((MONTH($K$2:$K$36)=MONTH(K2))*((YEAR($K$2:$K$36)=YEAR(K2))*($M$2:$M$36))) and copy down

Call Col O “Monthly Cost” and in cell O2: =SUMPRODUCT((MONTH($K$2:$K$36)=MONTH(K2))*((YEAR($K$2:$K$36)=YEAR(K2))*($I$2:$I$36))) and copy down

I’ll leave you to play around whether you want to manually delete duplicated monthly rows or not.

Call Col P “Average gallons/day” and in P2: =D2/(K2-K3) and copy down.

Any other calcs should be easy to set up from this.
 
Upvote 0

Forum statistics

Threads
1,214,972
Messages
6,122,530
Members
449,088
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top