what functions to use in my case?

makubexho

New Member
Joined
Jan 17, 2011
Messages
18
Office Version
  1. 2016
Platform
  1. Windows
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.
 
Last edited:

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Excel Workbook
ABC
1peter85
2kitty80
3peter89
4kitty79
5peter90Prize
6kitty88
7peter81
8kitty80
9peter87
10kitty91Prize
11peter84Prize
Sheet


fomula in C5 and copy down.
 
Upvote 0
thx but not quite close to what i m looking for, be more specific, look at this table for details of the case

Student--Mark---Prize
A---------81
B---------80
C---------90
A---------90
E---------59
F---------78
A---------89------Yes
B---------78
C---------80
E---------90
F---------80
B---------81
A---------90
B---------90
C---------59
D---------80
E---------79
B---------90------Yes
A---------88
D---------80
G---------79
J---------80
A---------81------Yes


Can you notice the pattern in which the prize is given?
 
Upvote 0
Can you notice the pattern in which the prize is given?
Yes, and I note that you removed the pattern of students you had.
You're asking for a formula (and it won't be a simple one) to compensate for a sloppy data layout.
Your data is laid out like a database, 1 record per row, so it's more suitable to being interrogated that way, with pivot tables, advanced filters and the like. Perhaps over the top for something like this. I suggest you devote a row (or column) or two per student, so that all the info about a given student is all in one area, that'll make it easier to construct formulae.
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,777
Members
452,942
Latest member
VijayNewtoExcel

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top