Hi, I have a spreadsheet where I am recording fuel usage for a fleet of vehicles. I am recording, date, vehicles and odometer readings. I also have a filter in place.
When I filter the spreadsheet to show me information for a specific vehicle, I want a formula which will calculate the difference in KM between the last 2 fuel fill ups. I have used the SUBTOTAL function to determine the MAX and MIN figures. Is there a way of using the SUBTOTAL function for this too?
I have used the formulas LARGE(range,1) and LARGE(range,2) to determine the 2 highest KM Figures, but they do not change when I filter for a specific vehicle, which is what I want it to do so I can determine how many KM the vehicle has travelled between filling up with fuel.
Below is a sample of the spread sheet, if that helps anyone.
Date Vehicle KM's
25/02/2014 LV1 243,573
25/02/2014 LV5 139,876
25/02/2014 LV1 244,263
27/02/2014 LV10 44,099
01/03/2014 LV6 365,399
02/03/2014 LV1 244,850
05/03/2014 LV4 115,328
06/03/2014 LV1 245,326
06/03/2014 LV10 44,631
08/03/2014 LV10 44,993
10/03/2014 LV4 116,639
10/03/2014 LV10 45,558
13/03/2014 LV1 246,665
Any help will be greatly appreciated
Bookmarks