Reputation: 317
Having trouble making ARRAYFORMULA
copy down its values when using it in combination with AVERAGEIF
. Here is my google sheet. It works fine when I copy down the formula, it just won't auto-populate.
Here is my current formula
=ARRAYFORMULA(AVERAGEIF(A2:A,A2,B2:B))
Upvotes: 1
Views: 189
Reputation: 1
use:
=ARRAYFORMULA(IFNA(VLOOKUP(A2:A, QUERY(A2:B,
"select A,avg(B)
where A is not null
group by A
label avg(B)''"), 2, 0)))
Upvotes: 2