Last 5 games scoring average

  • MODERATOR NOTICE: This topic has also been posted on other sites and may already have an answer elsewhere. Please take this into consideration when answering this question…t-streak.html#post5538314

    Hello, was hoping for help, it would be so greatly appreciated. Im trying to figure out how to run in excel a formula that outputs the average scoring against per team in sports in the teams last 5 games and last 10 games.. For example, I want to see the Rays opponents scoring is in the last 5 and 10 games. I have the formula for scoring FOR but can't seem to figure out how to run scoring AGAINST.

    I've attached an excel sheet and its columns K and M that im trying to figure out.

    Thank you very much if someone can help!


    • Book3.xlsx

      (30.6 kB, downloaded 51 times, last: )
  • Without a date or some other notation such as the Game number, I am not sure how you would determine the last 5 or last 10. What criteria would you use if you were doing this manually other than picking by sight.

  • Thanks for getting back. Perhaps if I break it up and use Home and Away columns then I can break it down. But the formula I am using is


    Where I2 is the team that I am searching for (ie, Angels). But how do I write the formula to find Angels opponents scoring?

  • Try,

    1] "RF Last 5 Games", in cell J2 CSE formula copied down :


    2] "RA Last 5 Games", in cell K2 CSE formula copied down :


    3] "RF Last 10 Games", in cell L2 CSE formula copied down :


    4] "RA Last10 Games", in cell M2 CSE formula copied down :


    Attached file :

    Average last 5 and 10 scoring.xlsx

  • WOW! that was awesome, thank you very much for this! it worked. the file you sent I will use that and add it to my worksheet. I'm still trying to learn excel and thankfully coming across someone as your self who has helped out has made it easier, thanks!!

  • Ok so I've noticed a problem with this formula and was wondering for some help. When I tried to do this for soccer it gave me an error. Because there are many games with 0 goals I was noticing that it was not adding up correctly and I would get an error. I attached another book with the last set of games of the season. I only did Last 1 game as reference so you can see the error. When I did this for Last 5, the teams that had 0 goals for or 0 goals against it was not adding it up correctly.

    Any chance to correct this?


    • Problem.xlsx

      (11.13 kB, downloaded 40 times, last: )
  • I've found an alternative on how to calculate goals for, the formula is,


    This here gives me the goals for in the last game. But is there anyway to calcuate the goals against in the last game? Im having trouble to finding the opposite.