Calculating miles per gallon (mpg) is a crucial aspect of monitoring fuel efficiency, especially for fleet managers, car enthusiasts, and environmentally conscious drivers. Excel, with its powerful formula capabilities, offers an easy way to calculate and track mpg. Let's delve into the world of Excel formulas to help you optimize your fuel efficiency calculations.

Before we dive into the formulas, let's ensure we have the right data. You'll need two key pieces of information: the distance traveled in miles and the amount of fuel used in gallons. Once you have these figures, you're ready to calculate your mpg.

Basic MPG Formula in Excel
The basic formula to calculate miles per gallon in Excel is straightforward. It's simply the distance traveled divided by the amount of fuel used:

MPG = Distance (miles) / Fuel Used (gallons)
Using the Formula

To use this formula in Excel, follow these steps:
1. Enter the distance traveled in miles in cell A1 (e.g., 300).
2. Enter the amount of fuel used in gallons in cell B1 (e.g., 12).

3. In cell C1, enter the formula =A1/B1 and press Enter. The cell will display the calculated mpg (e.g., 25).
Formatting the Result
To display the result as a whole number, right-click on cell C1, select "Format Cells," then "Number," and choose "Number" with zero decimal places. This will ensure your mpg is displayed as a whole number (e.g., 25 mpg).

Calculating MPG for Multiple Trips
If you're tracking mpg for multiple trips, you can use the same formula in an array. This allows you to calculate mpg for each trip with a single formula.




















Setting Up the Data
In columns A and B, list the distance traveled and fuel used for each trip, starting from A1 and B1:
| Distance (miles) | Fuel Used (gallons) |
|---|---|
| 300 | 12 |
| 450 | 18 |
| 600 | 24 |
Using the Array Formula
In cell C1, enter the formula =A1:B3/A1:B3 and press Ctrl+Shift+Enter (CSE) instead of just Enter. This tells Excel to apply the formula to the entire range C1:C3, calculating mpg for each trip.
With these formulas, you can easily calculate and track your miles per gallon in Excel, helping you make informed decisions about your fuel efficiency. Whether you're a fleet manager, a car enthusiast, or an environmentally conscious driver, understanding and optimizing your mpg can lead to significant savings and reduced emissions.
So, go ahead, start tracking your mpg, and watch your fuel efficiency improve over time. Happy calculating!