Here's what I did
-------A-----B-----C-------D---------E-----
-----Date - ODO - Gal - Tank MPG - Cum MPG
1 ---1/1/01---0 ---XX-----XX--------XX
2 --1/15/01-350---21.875--16--------16
and so on
Cols A, B, & C are input
Cell D2 gets a formula = (B2-B1)/C2
Cell E2 gets a formula = (B2-$B$1)/Sum($C$1:C2) This gives you cumulative or lifetime average MPG (total miles divided by total fuel added)
Those formulas get copied down each column, and when they do, they look like this in D3 = (B3-B2)/C3
and in E3 = (B3-$B$1)/Sum($C$1:C3)
The $ embedded in the cell reference makes it absolute, so that the reference is always to B1 and C1 in the formula for col E. Otherwise, the cell references in the formulas increment by one row.
The syntax is for Excel, but should be similar for Quattro Pro
I also have a moving average set up for 4 fillups, but that's for another lesson.
Decimal point position is done by formatting the cells. In Excel, there's a button in the toolbar that moves the decimal point either left or right.
If you'd like, I can e-mail you my Excel Spread, which you should be able to import into QP.
Hope that helps