RockandGrohl
Well-known Member
- Joined
- Aug 1, 2018
- Messages
- 790
- Office Version
- 365
- Platform
- Windows
Hi fellas
I'm using this beast to calculate the Average of a filtered set of results based on three criteria:
AI = FamilyFun
AH = ""
AJ >0
With BC being the average range.
Now this formula works really well when I do a count or sum from the Subtotal function, but when I change it to 101 which is average and the range is unfiltered, it gives me 1.5 million. If I highlight the unfiltered range (top to bottom of column BC) it gives me 304 as an average.
When I apply the filter to the range, the result of the formula gives me Div/0 even though 0's can be included when averaging.
I can't work this at as this three criteria function works so well for counting or summing a filtered range. Cheers!
I'm using this beast to calculate the Average of a filtered set of results based on three criteria:
Excel Formula:
=SUMPRODUCT((DataFeed!$AI$2:$AI$287189="FamilyFun")*(DataFeed!$AH$2:$AH$287189="")*(DataFeed!$AY$2:$AY$287189>0)*SUBTOTAL(101,OFFSET(DataFeed!$BC$2:$BC$287189,ROW(DataFeed!$BC$2:$BC$287189)-MIN(ROW(DataFeed!$BC$2:$BC$287189)),0,1)))
AI = FamilyFun
AH = ""
AJ >0
With BC being the average range.
Now this formula works really well when I do a count or sum from the Subtotal function, but when I change it to 101 which is average and the range is unfiltered, it gives me 1.5 million. If I highlight the unfiltered range (top to bottom of column BC) it gives me 304 as an average.
When I apply the filter to the range, the result of the formula gives me Div/0 even though 0's can be included when averaging.
I can't work this at as this three criteria function works so well for counting or summing a filtered range. Cheers!