Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a worksheet used for calculating vehicle fuel economy statistics.
The columns a A - Date B - Mileometer reading C - Amount of fuel added D - Whether tank full or not ("Y" if full / blank if not) In column E I want to display the Miles Per Gallon (MPG) based upon the most recent fill-up. Hence, if the tank was filled, I need to devise a formula that refers back to when it was last full (ie; when column C last had a "Y" entered) and then subtracts today's mileage from that in column B when the tank was last full. If the tank was not full then column E remains blank until next time it is full. I can only think of using VLOOKUP for this but not quite sure how as there will be many instances of "Y" in column C - I just need the most recent. Any ideas? Thanks. Terry Bennett |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calculations - Max and Min | Excel Worksheet Functions | |||
Calculations | Excel Discussion (Misc queries) | |||
how many calculations? | Excel Worksheet Functions | |||
Help with PV calculations | Excel Worksheet Functions | |||
Between calculations | Excel Worksheet Functions |