Counting consecutive test results above 75% per student

Phil1981

New Member
Joined
May 27, 2011
Messages
27
I have a large data dump of 1200+ students and all their test scores. What I want to do is output a results (true/false) for each agent that had at least 2 consecutive test scores above 75%

Example
ID | Name | Test Score
123456 | Student A | 76%
654321 | Student B | 86%
435261 | Student C | 96%
123456 | Student A | 66%
654321 | Student B | 77%
435261 | Student C | 46%
123456 | Student A | 56%
654321 | Student B | 81%
435261 | Student C | 88%
123456 | Student A | 86%
654321 | Student B | 97%
435261 | Student C | 79%

In this case Student A would result in False (no 2 consecutive scores above 75%), Student B would result in True (all 4 tests above 75%) and finally Student C would result in True (last 2 test were above 75%)

I thought it would simply to formulate but I can't seem to get the result I was expecting using any formulas I am familiar with.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
It's a pretty tricky proposition. Try:

ABCD
1IDNameTest Score
2123456Student A76%FALSE
3654321Student B86%TRUE
4435261Student C96%TRUE
5123456Student A66%FALSE
6654321Student B77%TRUE
7435261Student C46%TRUE
8123456Student A56%FALSE
9654321Student B81%TRUE
10435261Student C88%TRUE
11123456Student A86%FALSE
12654321Student B97%TRUE
13435261Student C79%TRUE

<tbody>
</tbody>
Sheet2

Array Formulas
CellFormula
D2{=IF(MAX(FREQUENCY(IF(($A$2:$A$13=A2)*($C$2:$C$13>=75%),ROW($A$2:$A$13)),IF(($A$2:$A$13=A2)*($C$2:$C$13<75%),ROW($A$2:$A$13))))>=2,TRUE)}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Last edited:
Upvote 0
Sorry I forgot to mention the additional criteria I need which complicates this request even more, Each student has 12 weeks to accomplish 2 scores above 75% so I need a date range criteria as well.

Example is Student A started into this new pilot on 9/1/2017 and must have accomplished 2 consecutive scores above 75% by 11/24/2017 to be True.
 
Upvote 0
It's a pretty tricky proposition. Try:

ABCD
1IDNameTest Score
2123456Student A76%FALSE
3654321Student B86%TRUE
4435261Student C96%TRUE
5123456Student A66%FALSE
6654321Student B77%TRUE
7435261Student C46%TRUE
8123456Student A56%FALSE
9654321Student B81%TRUE
10435261Student C88%TRUE
11123456Student A86%FALSE
12654321Student B97%TRUE
13435261Student C79%TRUE

<tbody>
</tbody>
Sheet2

Array Formulas
CellFormula
D2{=IF(MAX(FREQUENCY(IF(($A$2:$A$13=A2)*($C$2:$C$13>=75%),ROW($A$2:$A$13)),IF(($A$2:$A$13=A2)*($C$2:$C$13<75%),ROW($A$2:$A$13))))>=2,TRUE)}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>


Ok this formula should work even with my additional criteria because I can just add a helper column for the end date as I already have their start date. I will try this when I am back in the office tomorrow. Thanks so much, I will let you know if it works.
 
Upvote 0

Forum statistics

Threads
1,215,417
Messages
6,124,777
Members
449,187
Latest member
hermansoa

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