MS Excel assistance, plz - Smart Car of America Forums : Smart Car Forum
Home News Models Alternatives
 
Smart Car of America - America's Largest Smart Fortwo Enthusiast Community   Smart Fortwo, smart car, smartcar
HOME FORUMS GALLERY

Go Back   Smart Car of America Forums : Smart Car Forum > Life Beyond smart > Tech & Gadgets


Notices

SmartCarofAmerica.com is the premier Smart Car Forum on the internet. Registered Users do not see the above ads.
» Auto Insurance
» Supporting Partner
» Recent Threads
Reply
 
LinkBack Thread Tools Display Modes
Old 08-07-2008, 04:58 AM   #1 (permalink)
 
Feral_Collie's Avatar
 
Join Date: Sep 2009
Location: Albany, NY
Drive: Passion
Posts: 46
Thanks: 0
Thanked 1 Time in 1 Post
MS Excel assistance, plz

Good Morning, SCOA.

I am making a fuel log using MS Excel to record my mileage, but have ran into a snags. My setup has odometer readings from start to finish, distance covered, gallons filled at the pump, and mileage.

My snags are that my programming for the mileage column has my first entry, then multiple #DIV/0! as there is no fuel entry. Any way to clean that up?

Also, I want to make a cumulative mileage counter, which will make an average of the mileage column while ignoring the zero entries. I thought I had it, but I ended up getting a cumulative MPG of 1.7 for entries 1-25.

Any MS Office savvy people out there that can fix my hack job?

Feral_Collie is offline   Reply With Quote
Old 08-07-2008, 05:11 AM   #2 (permalink)
 
doenut's Avatar
 
Join Date: Jan 2008
Location: Northern RI 1271
Drive: Passion
Posts: 353
Thanks: 0
Thanked 1 Time in 1 Post
Excel

Quote:
Originally Posted by Feral_Collie View Post
Good Morning, SCOA.

I am making a fuel log using MS Excel to record my mileage, but have ran into a snags. My setup has odometer readings from start to finish, distance covered, gallons filled at the pump, and mileage.

My snags are that my programming for the mileage column has my first entry, then multiple #DIV/0! as there is no fuel entry. Any way to clean that up?

Also, I want to make a cumulative mileage counter, which will make an average of the mileage column while ignoring the zero entries. I thought I had it, but I ended up getting a cumulative MPG of 1.7 for entries 1-25.

Any MS Office savvy people out there that can fix my hack job?
As far as the multiple #DIV/0! is concerned, unless you temporarily make the color of the font white, it will always be there as long as the formula is in the cell. You could leave the cells with no entry blank until you have something on the line, and then just copy the formula manually when something is entered on the line. Re the cumulative mileage counter, I'll have to think on that one for a while......
doenut is offline   Reply With Quote
Old 08-07-2008, 06:03 AM   #3 (permalink)
 
MichaelJ's Avatar
 
Join Date: Feb 2008
Location: Northern Virginia
Drive: Passion
Posts: 164
Thanks: 0
Thanked 0 Times in 0 Posts
Use the "If...Then" function...

Something like: =IF(D16=0,"",C16/D16)

Where C16 is the mileage for this tank and D16 is the fuel taken.

The formula (in English) is:

If D16 equals 0, then display nothing, else display the result of C16 divided by D16.

You can now populate your spreadsheet with the formulae and they will only display a value when there is a value to be displayed.
MichaelJ is offline   Reply With Quote
Old 08-07-2008, 07:14 AM   #4 (permalink)
To the XCAPEPOD!
SCOA Club
 
rfernatt's Avatar
 
Join Date: Jan 2008
Location: Almost Heaven... West Virginia
Drive: Passion
Posts: 4,313
Thanks: 89
Thanked 437 Times in 213 Posts
Garage
Quote:
Originally Posted by Feral_Collie View Post
My snags are that my programming for the mileage column has my first entry, then multiple #DIV/0! as there is no fuel entry. Any way to clean that up?

Also, I want to make a cumulative mileage counter, which will make an average of the mileage column while ignoring the zero entries. I thought I had it, but I ended up getting a cumulative MPG of 1.7 for entries 1-25.

There's a few ways to do this. The previous suggestion on using the IF function is what I usually do, but if the cell is truly blank and does not contain a zero, then I would probably use =IF(A6="","",A6/B6). There is technically a difference between a zero value (0) and a null value ("").

You can just SUM the range to get the numerator for your average, but then you'll probably need to use the COUNT function to add up the number of actual entries (less the blank ones). So, if you had a range from A6:A100 and you have 60 actual entries and 35 blank cells, you could use COUNT(A6:A100) and it would return 60 for your denominator. Your average would then be returned by =SUM(A6:A100)/COUNT(A6:A100) if I'm understanding the question right.
rfernatt is offline   Reply With Quote
Old 08-07-2008, 07:35 AM   #5 (permalink)
 
Feral_Collie's Avatar
 
Join Date: Sep 2009
Location: Albany, NY
Drive: Passion
Posts: 46
Thanks: 0
Thanked 1 Time in 1 Post
Problem Solved

Thanks for the help with the multiple #DIV/0! entries. As for cumulative mileage, I used the IF function:

=AVERAGE(IF(F2:F30<>0,F2:F30,""))

Column F is my tank by tank mileage, and I figured 29 entries should at least start me off. With this setup, it ignores any zero/nothing entry.

Thank you for all your inputs! I now have an impartial and accurate fuel log. Well, as accurate as the first click at a gas station will allow.
Feral_Collie is offline   Reply With Quote
 
Today


This ad will not be shown if you are logged in.

Sponsored Links
Advertisement
 
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Smart USA Customer Assistance Center # 1-800-FOR-SMART Smartster smart News & Rumors 2 12-17-2007 07:24 PM
Roadside assistance propes smart News & Rumors 1 11-03-2007 04:12 PM

Powered by vBadvanced CMPS v3.2.2

All times are GMT -7. The time now is 05:37 AM.



Smart Cars of America, LLC is not affiliated with, authorized by, associated with or have any connection with G&K, Zap, Mercedes-Benz, Mercedes-Benz AMG, Mercedes-Benz McLaren Mercedes-Benz USA, LLC, smart Canada Division, DaimlerChrysler, Chrysler LLC, DaimlerChrysler AG, Maybach, smart gmbh, a division of Mercedes Benz LLC, the manufacturer of SMART automobiles, smart USA Distributor, LLC, a division of Penske Automotive Group, Inc, the exclusive authorized U.S. importer and distributor of the smart vehicle or any of their official dealerships


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Garage Plus vBulletin Plugins by Drive Thru Online, Inc.
Ad Management by RedTyger