THE PROBLEM
I'm trying to get the Average Price if these criteria are met...
- Search Term = "cup"
- Top Competitor = "TRUE"
- I'd only like to average the Top 5 results (by Search Ranking) in the set.
So the formula should return 8.00
WHAT I'VE TRIED
=AVERAGEIFS(C:C,A:A,"cup",D:D,"TRUE",B:B,"<="&SMALL(B:B,5))
My formula is returning 7.5, which is too low. The formula seems to work until I add in the last criteria: B:B,"<="&SMALL(B:B,5)
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Search Term | Rank | Price | Top Competitor |
| 2 | cup | 1 | 5.00 | TRUE |
| 3 | cup | 2 | 5.00 | FALSE |
| 4 | cup | 3 | 10.00 | TRUE |
| 5 | cup | 4 | 5.00 | TRUE |
| 6 | cup | 5 | 5.00 | FALSE |
| 7 | cup | 6 | 10.00 | FALSE |
| 8 | cup | 7 | 10.00 | TRUE |
| 9 | cup | 8 | 10.00 | TRUE |
| 10 | cup | 9 | 5.00 | TRUE |
| 11 | cup | 10 | 5.00 | TRUE |
| 12 | plate | 1 | 20.00 | TRUE |
| 13 | plate | 2 | 10.00 | FALSE |
| 14 | plate | 3 | 10.00 | TRUE |
| 15 | plate | 4 | 20.00 | TRUE |
| 16 | plate | 5 | 10.00 | FALSE |
| 17 | plate | 6 | 20.00 | FALSE |
| 18 | plate | 7 | 20.00 | FALSE |
| 19 | plate | 8 | 20.00 | FALSE |
| 20 | plate | 9 | 15.00 | TRUE |
Thanks for your help!
