Hi folks
I have a spreadsheet of football data containing loads of info. The bit I am currently working on is doing some calculations based on a teams last x games (lets say x will be 6)
Its ordered by calldate,hometeam and if I can it get it doing what I want then it will have a division column at the front for the whole league
here is my data structure
Date HomeTeam AwayTeam FTHG FTAG
29/03/2006 Man United West Ham 1 0
01/04/2006 Arsenal Aston Villa 5 0
01/04/2006 Birmingham Chelsea 0 0
01/04/2006 Bolton Man United 1 2
01/04/2006 Everton Sunderland 2 2
01/04/2006 Fulham Portsmouth 1 3
01/04/2006 Newcastle Tottenham 3 1
01/04/2006 West Brom Liverpool 0 2
02/04/2006 Man City Middlesboro 0 1
02/04/2006 West Ham Charlton 0 0
03/04/2006 Blackburn Wigan 1 1
04/04/2006 Birmingham Bolton 1 0
08/04/2006 Charlton Everton 0 0
08/04/2006 Portsmouth Blackburn 2 2
08/04/2006 Tottenham Man City 2 1
08/04/2006 Wigan Birmingham 1 1
09/04/2006 Aston Villa West Brom 0 0
09/04/2006 Chelsea West Ham 4 1
09/04/2006 Liverpool Bolton 1 0
09/04/2006 Man United Arsenal 2 0
09/04/2006 Middlesboro Newcastle 1 2
To get me started I need to add 2 columns eg , HomeTeam6Goals and AwayTeam6Goals which will calculate both the Home teams and Away teams goals scored in the previous 6 games. Maybe I need to do it in a database instead I can query. I want to try and find a formulae solution if possible and not change the structure of the data though not sure where to start, can I do it without VBA?
thanks for any pointers
Matt
Brighton, UK
I have a spreadsheet of football data containing loads of info. The bit I am currently working on is doing some calculations based on a teams last x games (lets say x will be 6)
Its ordered by calldate,hometeam and if I can it get it doing what I want then it will have a division column at the front for the whole league
here is my data structure
Date HomeTeam AwayTeam FTHG FTAG
29/03/2006 Man United West Ham 1 0
01/04/2006 Arsenal Aston Villa 5 0
01/04/2006 Birmingham Chelsea 0 0
01/04/2006 Bolton Man United 1 2
01/04/2006 Everton Sunderland 2 2
01/04/2006 Fulham Portsmouth 1 3
01/04/2006 Newcastle Tottenham 3 1
01/04/2006 West Brom Liverpool 0 2
02/04/2006 Man City Middlesboro 0 1
02/04/2006 West Ham Charlton 0 0
03/04/2006 Blackburn Wigan 1 1
04/04/2006 Birmingham Bolton 1 0
08/04/2006 Charlton Everton 0 0
08/04/2006 Portsmouth Blackburn 2 2
08/04/2006 Tottenham Man City 2 1
08/04/2006 Wigan Birmingham 1 1
09/04/2006 Aston Villa West Brom 0 0
09/04/2006 Chelsea West Ham 4 1
09/04/2006 Liverpool Bolton 1 0
09/04/2006 Man United Arsenal 2 0
09/04/2006 Middlesboro Newcastle 1 2
To get me started I need to add 2 columns eg , HomeTeam6Goals and AwayTeam6Goals which will calculate both the Home teams and Away teams goals scored in the previous 6 games. Maybe I need to do it in a database instead I can query. I want to try and find a formulae solution if possible and not change the structure of the data though not sure where to start, can I do it without VBA?
thanks for any pointers
Matt
Brighton, UK