Jul 15, 2024
Running average
I have trouble calculating a running average in Google sheets.
Please see the attached file.
In cell H2, I want to calculate the last 3-games average GD for the team at cell G2.
So I need a formula that finds the last 3 rows that had the team name in G2 in columns B and C (you could also select those rows with the most recent data for example) and then take the Home GD value if Home = G2 or take the Away GD value if Away = G2. We take the sum of hose three values and then divide by 3. This is the formula I need in cell H2.
For example for Fire this would give us (3-4-1)/3 = -0.667
Details
Community content may not be verified or up-to-date. Learn more.
All Replies