still learning
Well-known Member
- Joined
- Jan 15, 2010
- Messages
- 826
- Office Version
- 365
- Platform
- Windows
Hi
I’m trying to have a running average of the MPG but I don’t want to include any fill up that is 10 gallons or less
A:A is the date of the fill up
B:B is the amount of fuel in gallons used for the fill up
D:D is the millage driven for the fill up
F:F is the miles per galleon (MPG) for the fill up
G:G is the running average of MPG use since the beginning where i want to add the formula i'm having truoble with
It starts on A78 and right now it ends on A93 I don’t know what date it will end. I have the formula go down to A150 which I can extend it later
In F78, I have this formula that gives me MPG for that fill up and it’s copied down to F150
In G78, I have this formula that gives me the running millage since the beginning and it runs down to G150
I’m trying to change it so if the amount of gallons used for the fill up (B:B) is less than 10.0, it won’t be used the average
I tried this but it puts a 0 in f and includes it in the average
Or.
I need help with writing an if statement that will give me a running total but keep the cell blank if A is blank and not include a cell that's results is based on another cell that is equal or lower than 10
mike
I’m trying to have a running average of the MPG but I don’t want to include any fill up that is 10 gallons or less
A:A is the date of the fill up
B:B is the amount of fuel in gallons used for the fill up
D:D is the millage driven for the fill up
F:F is the miles per galleon (MPG) for the fill up
G:G is the running average of MPG use since the beginning where i want to add the formula i'm having truoble with
It starts on A78 and right now it ends on A93 I don’t know what date it will end. I have the formula go down to A150 which I can extend it later
In F78, I have this formula that gives me MPG for that fill up and it’s copied down to F150
Excel Formula:
=IF(A78="","",+D78/B78)
Excel Formula:
=IF(A78="","",AVERAGE($F$78:F78))
I tried this but it puts a 0 in f and includes it in the average
Excel Formula:
=IF(AND(A78<>"",B78>10),AVERAGE($F$78:F78),””)
Or.
I need help with writing an if statement that will give me a running total but keep the cell blank if A is blank and not include a cell that's results is based on another cell that is equal or lower than 10
mike