annoying case, here it is, a class of students (say, 40) take part in weekly test regularly, their scores from each test are recorded in an excel sheet as following,
(for simplicity, i only use 2 students' records, peter's and kitty's)
peter---85
kitty----80
peter---89
kitty----79
peter---90---prize
kitty----88
peter---81
kitty---80
peter---87
kitty---91---prize
peter---84---prize
the thing i want to do is, in column C, for each student, who score above 80 for 3 times in a row, will be given a prize (e.g. peter, he is prized at his 3rd test becoz he fulfills this requirement, but Kitty, she failed it at 2nd test (scored 79 only), so the streak breaks there. She is prized at the 5th test as she scored above 80 for 3 times in a row.
(for simplicity, i only use 2 students' records, peter's and kitty's)
peter---85
kitty----80
peter---89
kitty----79
peter---90---prize
kitty----88
peter---81
kitty---80
peter---87
kitty---91---prize
peter---84---prize
the thing i want to do is, in column C, for each student, who score above 80 for 3 times in a row, will be given a prize (e.g. peter, he is prized at his 3rd test becoz he fulfills this requirement, but Kitty, she failed it at 2nd test (scored 79 only), so the streak breaks there. She is prized at the 5th test as she scored above 80 for 3 times in a row.
Last edited: