I have a database where I collect vehicle number, date, number of gallons of fuel put in at fuel pump and odometer reading at time of fueling. I am writing a report and need to formulate miles driven and miles per gallon. Therefore I need 2 formulas - 1 that will look at (per vehicle) the fuel date from the last fuel to get odometer reading, use that odometer to subtract this fueling odometer to get miles driven. Then I need a second formula to take gallons received this fueling and divide it by the miles driven (last formula) to get miles per gallon.
Is this possible? I am a novice and have not had much training in formulas.
Is this possible? I am a novice and have not had much training in formulas.