Re: Is it possible to strore more than one number in a cell (i.e. an array in a cell), and how can the nth element be referenced in formulas?
Hi Peter, I keep getting errors and not sure why. If you could provide any input, that would be super awesome In my new file, the "main" sheet reads from the "AllScores" sheet, and Chemistry scores are the third in the array in each cell as below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]End of week:[/TD]
[TD]22[/TD]
[TD]21[/TD]
[TD]20[/TD]
[TD]19[/TD]
[TD]18[/TD]
[TD]17[/TD]
[TD]etc.[/TD]
[/TR]
[TR]
[TD]week #:[/TD]
[TD]
10/19/2018
<strike></strike>[/TD]
[TD]
10/12/2018
<strike></strike>[/TD]
[TD]
10/05/2018
<strike></strike>[/TD]
[TD]09/28/2018[/TD]
[TD]09/21/2018[/TD]
[TD]09/14/2018[/TD]
[TD]etc.[/TD]
[/TR]
[TR]
[TD]Student1[/TD]
[TD]98,96,85,71,100,79<strike></strike>[/TD]
[TD]<strike></strike>78,89,86,77,97,83<strike></strike>[/TD]
[TD]<strike></strike>91,80,96,79,84,88<strike></strike>[/TD]
[TD]etc.[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Student2[/TD]
[TD]78,91,99,79,88,83<strike></strike>[/TD]
[TD]<strike></strike>89,84,93,90,88,94<strike></strike>[/TD]
[TD]<strike></strike>97,89,77,88,100,90<strike></strike>[/TD]
[TD]<strike></strike>[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]etc.[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
And the goal is to get the average of chemistry scores in between the current week, e.g. 22, and the number of weeks before the current week, which is specified in $A$2 in main sheet, e.g. 2, which would mean week 20. (So if I put 3 in
$A$2 of main sheet, then the formula would give me the average of chemistry scores spanning weeks 22-20.) I'm guessing that the cause of the errors is that I'm not properly modifying criteria1 and criteria2 so the formula can take the third numbers in the cells (but perhaps other components of the formula may need to be modified too?)
Thank you so much