AlphaQuail
New Member
- Joined
- Sep 14, 2013
- Messages
- 14
Hi,
I'm looking to build a football data sheet on matches played with a column that adds up the last 3 match goals for the team in that row. I've only managed to get as far as adding up all goals for a team in a static date range using SUMIF. I imagine this is more complex and requires some kind of changing sum range that's relative to the cell I'm in.
I'm intermediate at best so any array formulas and VB script would preferred to be avoided if possible.
in the watered down example below, I'd like to add up all home team goals for Hereford in the last 3 matches, therefore excluding the game on the 10th (row 1) giving a total of 5. I'd like this formula to copy down from a13 to future matches and therefore update. So the next week's match will add goals for hereford from e13,e11,e8 but exclude e2, e5. Yes you've guessed it... I'm trying to work out recent team form to predict match outcomes for financial gain...
Any help welcome
<a href="http://s1282.photobucket.com/user/belated_phenom/media/excel1_zps385d2c50.jpg.html" target="_blank"><img src="http://i1282.photobucket.com/albums/a521/belated_phenom/excel1_zps385d2c50.jpg" border="0" alt=" photo excel1_zps385d2c50.jpg"/></a>
I'm looking to build a football data sheet on matches played with a column that adds up the last 3 match goals for the team in that row. I've only managed to get as far as adding up all goals for a team in a static date range using SUMIF. I imagine this is more complex and requires some kind of changing sum range that's relative to the cell I'm in.
I'm intermediate at best so any array formulas and VB script would preferred to be avoided if possible.
in the watered down example below, I'd like to add up all home team goals for Hereford in the last 3 matches, therefore excluding the game on the 10th (row 1) giving a total of 5. I'd like this formula to copy down from a13 to future matches and therefore update. So the next week's match will add goals for hereford from e13,e11,e8 but exclude e2, e5. Yes you've guessed it... I'm trying to work out recent team form to predict match outcomes for financial gain...
Any help welcome
<a href="http://s1282.photobucket.com/user/belated_phenom/media/excel1_zps385d2c50.jpg.html" target="_blank"><img src="http://i1282.photobucket.com/albums/a521/belated_phenom/excel1_zps385d2c50.jpg" border="0" alt=" photo excel1_zps385d2c50.jpg"/></a>