Hi
I'm trying to add the last 5 weeks goal difference of the team named in cell d2 on the odds sheet with the goal difference information for the same team on gldiff sheet.
Not every team plays each week so if a team does not play then DNP will appear in the cell. Some teams might play 5 times in a 6 week period or more so it needs to be able to tell that.
It does not make a difference if the team is playing home or away.
I've manually put two answers in columns:
Cell D2 on odds sheet: Accrington = 7 in cell F2 this figure in obtained by adding together the figures on sheet gldiff cell H2:B2 which is a seven week period but only played 5 times.
Cell E2 on odds sheet: Birmingham = 0 in cell G2 this figure in obtained by adding together the figures on sheet gldiff cell H8:C8 which is a six week period but only played 5 times.
The sheet gldiff will have new figures added in each week. The new week will always be the last data added to the sheet.
I don't know if it will be of any help but the game week will always be in column A on the odds sheet and row 1 on the gldiff sheet if you need to use it as a starting point for adding up the previous weeks.
I hope someone can help.
Bookmarks