Hi everyone,
I'm trying to calculate the average attendance for a team, using the AVERAGEIF function.
In this example, I want to calculate the average attendance of Tottenham, which makes "Tottenham" the criteria. The problem is that Tottenham could either be the home team or the away team, and thus be in either column A or B. When using AVERAGEIF, Excel only seems to include rows if "Tottenham" in the first code column.
This is the code I use:
=AVERAGEIF(A2:B9,"Tottenham",C2:C9)
I've included a screenshot, but I use a Norwegian version of Excel, so it's probably bit confusing.
I'll be very grateful for your help!
Averageif.JPG
Bookmarks