How to create a Miles Per gallon sheet for Numbers

by Clay Moore on December 22, 2009

in Computers,How to,Software

People seem to learn better when working on a project. Recently I had some people who wanted to know how to set up a Miles per gallon sheet in Numbers. For those of you who are in the metric standard, the formulas are the same just substitute liters for gallons and kilometers for miles. We’ll get going after the break.

What’s really interesting about this project is that this is not just for Numbers. Just about every spreadsheet uses the same basic formulas, so you can follow along even if you are not using Numbers.

We need the following columns in this order

  1. Date
  2. Odometer start
  3. Odometer End
  4. Total miles
  5. Gallons
  6. Miles per Gallon

These are the basic minimum columns that wee need just to do this one task. You are free to add whatever columns you want. The sheet should look something like this:

Screen shot 2009-12-21 at 5.50.09 PM.png

The total miles column needs a formula, so start by typing this into cell d2, “=c2-b2″ Don’t put double quotes around the formula When you press enter after entering the formula you should get a zero in the cell. Now you need to autofill this formula down a couple of rows to prefill in the formula. The autofill is the round ball int he lower right corner of the selected cell. Click and drag that autofill down and the formula will be copied down correctly.

Screen shot 2009-12-21 at 5.58.13 PM.png

In column F we need to create the miles per gallon formula. Milesper gallon is a division, and in computers “/” is the divide operator. So enter the formula into cell F2. This is the formula “=d2/e2″ When you press enter you will get an error message, because you can’t divide by zero. This is an error that we can safely ignore. If it does bother you then put a 1 in cell E2. Autofill F2 and E2 down. Now you have a spreadsheet ready to tell you the mileage.

To use the spreadsheet you need to note down the current odometer reading when next you fill up your car. This is the odometer start reading. On the second fill-up note down the total gallons purchased and the odometer reading. Fill in the appropriate cells. You should get an immediate answer for the previous mpg. Remember to do this for all fill-ups and you should have a real nice indication of your mileage for your car.

Share

Related posts:

  1. Building formulas in iWork Tables
  2. How to Make a Loan Payment Calculator from any Spreadsheet
  3. How to work with multiple tables on a single sheet in Numbers
  4. Tesla Goes 313 Miles on Single Charge | Autopia | Wired.com
  5. Quote for Today

Previous post:

Next post:

<