kingspur06
Board Regular
- Joined
- Apr 24, 2007
- Messages
- 52
Hi everyone,
I have created a spreadsheet which calculates league standings based on a table of match results which works really well. It shows the usual info, played, won, drawn, lost, goals scored etc etc, and I have also broken this down into home and away matches.
This is fine at showing the current league position for all matches played in the season so far.
My problem is that I am also looking to create a recent form table which only takes into account the last 6 matches for each side. I just cannot work out how to adjust my current league table to only account for the last 6 results for each team.
My 'FIXTURES' sheet is laid out like this:
A: DATE B: HOME TEAM C: HOME SCORE D: AWAY SCORE E: AWAY TEAM
And as an example, the formula I have used to display the number of home wins for Team A in my league table is:
=SUMPRODUCT((FIXTURES!$B$2:$B$381='DUMMY TABLE'!$B4)*(FIXTURES!$C$2:$C$381>FIXTURES!$D$2:$D$381))
where DUMMY TABLE B4 = the team name.
I would appreciate any guidance possible on how I can limit the formula result to only the last six matches played
many thanks in advance
Mark
I have created a spreadsheet which calculates league standings based on a table of match results which works really well. It shows the usual info, played, won, drawn, lost, goals scored etc etc, and I have also broken this down into home and away matches.
This is fine at showing the current league position for all matches played in the season so far.
My problem is that I am also looking to create a recent form table which only takes into account the last 6 matches for each side. I just cannot work out how to adjust my current league table to only account for the last 6 results for each team.
My 'FIXTURES' sheet is laid out like this:
A: DATE B: HOME TEAM C: HOME SCORE D: AWAY SCORE E: AWAY TEAM
And as an example, the formula I have used to display the number of home wins for Team A in my league table is:
=SUMPRODUCT((FIXTURES!$B$2:$B$381='DUMMY TABLE'!$B4)*(FIXTURES!$C$2:$C$381>FIXTURES!$D$2:$D$381))
where DUMMY TABLE B4 = the team name.
I would appreciate any guidance possible on how I can limit the formula result to only the last six matches played
many thanks in advance
Mark