This spreadsheet has some interesting features on page BadgeLog. Because this spreadsheet uses many Excel features, I offer it as a download.
• The formula in N7 was fun. I create the logon ID from the first letter of the first name and the last name. BUT, I don't create this ID until I've entered the date to verify that I've actually created the account. The other blue column is also automatically filled.
• 4 columns (green) contain drop-downs created with the Data > Validation tool and data on the Lists page.
• I used Conditional Formatting to indicate the columns that are either auto filled or have drop-downs.
• There's a neat macro (which I didn't create from scratch) to automatically fill in the shading. After I delete lines or resort the spreadsheet, the macro clears existing formatting and recreates the shading. This one is hard-coded, but the original prompted for variables for many of the specs.
(c) 2004-2007 corp04@zaitech.com w/ public domain components. Free distribution with permanent acknowledgment.
Showing posts with label template. Show all posts
Showing posts with label template. Show all posts
Thursday, September 27, 2007
Wednesday, August 8, 2007
Miles per Gallon
OK, maybe I'm compulsive about keeping trivial records. But with $3+/gal gas, everyone's starting to be interested in how they're doing day-to-day.
This workbook+ contains one simple formula =(F8-F7)/E8 [ (mileage this fillup)-(mileage last fillup)/(gals this fillup) ] in col G to calculate MPG at your last fillup. Since you may not be consistent in how full you get your tank, I also included 2-tank and 3-tank averages to smooth it out.
My Audit column recalculates the cost as the price per gallon times the gallons to catch typos. If it's off by more than a few cents (to allow for the hundredths of a gallon), one of the numbers is wrong. Sometimes I know the audit is going to be invalid if I didn't actually fill up once and a "single tank" represents multiple purchases at different prices (this is common if I know I'm travelling to a low-price area, but need another 2 gallons to get there).
For MPG tracking to be accurate, you have to be faithful. If you regularly buy gas without filling up, you have to combine individual purchases to create a "tank" that you know all the miles were burned on.* And, if you forget to write down the gallons just once, not only is that tank invalid, but so is all your cumulative data. Like I said, I'm compulsive.
I haven't yet figured the simple formula (I can do it with programming) for row 1 to get an accurate average of all the non-0 entries in a column. If I set the average past the current bottom of the worksheet, it counts all the empty rows. As it is now, my "lifetime" is only to where I was last time I wrote the formula.
* If you don't fill up ...
You can only calculate MPG if you know exactly how many gallons you burned for a given number of miles. If you can only afford $5 at a time; one day that $5 may bring you up to 7/8 full and the next you leave the pump just 1/3 full. That means you burned more gas than you bought, but you don't know how much. If you occasionally miss a fill up, just add all the partials to the next time you top off and call it one "tank". If you never fill up ... well, your lifetime average will be close (because being off by 4 gal when you're calculating MPG for 400 gal isn't significant).
(c) 2007 Bill BarnesMore like this: http://3500a.blogspot.com/
+ To use the published workbook:Click the link to open a web picture - not a working spreadsheet - of my workbook. Type the content from the Formulas page into a spreadsheet. The heading "Date" goes in cell B3. You only really need the five formulas on row 7 that start =(F7-F6)/E7. Then you can use your spreadsheet's autofill function to replicate them on the rest of your rows. Be sure not to type the " ' " before the "=".
Even easier; if you have a Google account, you can open a live spreadsheet in Google Docs. From there you can export it for your own use with the formulas intact.
This workbook+ contains one simple formula =(F8-F7)/E8 [ (mileage this fillup)-(mileage last fillup)/(gals this fillup) ] in col G to calculate MPG at your last fillup. Since you may not be consistent in how full you get your tank, I also included 2-tank and 3-tank averages to smooth it out.
My Audit column recalculates the cost as the price per gallon times the gallons to catch typos. If it's off by more than a few cents (to allow for the hundredths of a gallon), one of the numbers is wrong. Sometimes I know the audit is going to be invalid if I didn't actually fill up once and a "single tank" represents multiple purchases at different prices (this is common if I know I'm travelling to a low-price area, but need another 2 gallons to get there).
For MPG tracking to be accurate, you have to be faithful. If you regularly buy gas without filling up, you have to combine individual purchases to create a "tank" that you know all the miles were burned on.* And, if you forget to write down the gallons just once, not only is that tank invalid, but so is all your cumulative data. Like I said, I'm compulsive.
I haven't yet figured the simple formula (I can do it with programming) for row 1 to get an accurate average of all the non-0 entries in a column. If I set the average past the current bottom of the worksheet, it counts all the empty rows. As it is now, my "lifetime" is only to where I was last time I wrote the formula.
* If you don't fill up ...
You can only calculate MPG if you know exactly how many gallons you burned for a given number of miles. If you can only afford $5 at a time; one day that $5 may bring you up to 7/8 full and the next you leave the pump just 1/3 full. That means you burned more gas than you bought, but you don't know how much. If you occasionally miss a fill up, just add all the partials to the next time you top off and call it one "tank". If you never fill up ... well, your lifetime average will be close (because being off by 4 gal when you're calculating MPG for 400 gal isn't significant).
(c) 2007 Bill BarnesMore like this: http://3500a.blogspot.com/
+ To use the published workbook:Click the link to open a web picture - not a working spreadsheet - of my workbook. Type the content from the Formulas page into a spreadsheet. The heading "Date" goes in cell B3. You only really need the five formulas on row 7 that start =(F7-F6)/E7. Then you can use your spreadsheet's autofill function to replicate them on the rest of your rows. Be sure not to type the " ' " before the "=".
Even easier; if you have a Google account, you can open a live spreadsheet in Google Docs. From there you can export it for your own use with the formulas intact.
Subscribe to:
Posts (Atom)