I am trying to average by each month over the last three years. I want to calculate it for each project, but without specifically matching it/tying it to the row (as when more projects are added it is done alphabetically and shifts the rows).
I have tried, but it keeps giving me an error:
=AVERAGEIF(INDEX(G21:P25,MATCH(R24,G23:G25,0),0),H21:P21,S22)
| Project | Jan 20 | Feb 20 | Mar 20 | Jan 21 | Feb 21 | Mar 21 | Jan 22 | Feb 22 | Mar 22 |
|---|---|---|---|---|---|---|---|---|---|
| Minnie | 200 | 210 | 208 | 199 | 215 | 205 | 196 | 212 | 204 |
| Moon | 10 | 10 | 20 | 10 | 11 | 17 | 10 | 10 | 18 |
| Pluto | 0 | 0 | 100 | 300 | 310 | 308 | 315 | 310 | 305 |
With the output table like:
| Project | Jan | Feb | Mar |
|---|---|---|---|
| Minnie | 198.33 | ||
| Pluto | |||
| Moon |






