Returning top grade results

aexley

New Member
Joined
Sep 18, 2014
Messages
3
Hi,

I'm working in a school and I need to run a report where I can pull out all students who scored all "A's" for their grades, all "1's" for their effort and who scored both and "A" and a "1" in all subjects they took.

The basic data sheet looks like this:

StudentCode
Name
Subject Code
Subject
Grade
Effort
1000
Ben Smith
10PHYS
Year 10 Physics
A+
1
1000
Ben Smith
10PE
Year 10 PE
A
1
1000
Ben Smith
10MATH
Year 10 Math
A-
1
1001
Jill Brown
10PHYS
Year 10 Physics
B+
1
1001
Jill Brown
10DRAMA
Year 10 Drama
A
1
1002
Simon West
10PE
Year 10 Phys Ed
A+
2
1002
Simon West
10MUSIC
Year 10 Music
A-
2
1002
Simon West
10ENGYear 10 English
A
1
1002
Simon West
10MATH
Year 10 Math
A-
1
1003
Sarah White
10PE
Year 10 Phys Ed
B-
2
1003
Sarah White
10DRAMA
Year 10 Drama
C
3

<tbody>
</tbody>

So the results expected should be:

All "A's" - Ben Smith, Simon West
All "1's" - Ben Smith, Jill Brown
All "A's and 1's" - Ben Smith

Any advice would be appreciated.

Thanks.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
This I how I did it
- first make a unique list of names(col J)
- K = formula for how many subjects that student does =COUNTIFS($B$2:$B$12,$J2)
- L = formula how many subjects that student got A in =COUNTIFS($B$2:$B$12,$J2,$E$2:$E$12,"a*") NB this includes A- which strictly speaking is not n A
- M = formula did student get all A's =COUNTIFS($B$2:$B$12,$J2,$E$2:$E$12,"a*") =COUNTIFS($B$2:$B$12,$J2)


AL these formulas are for data rows 2 to 12 -adjust t suit your datal

Name#subjects#Asall A'sa and1all a and 1
Ben Smith33TRUE3TRUE
Jill Brown21FALSE1FALSE
Simon West44TRUE2FALSE
Sarah White20FALSE0FALSE
<colgroup><col width="118" style="width: 89pt; mso-width-source: userset; mso-width-alt: 4315;"> <col width="119" style="width: 89pt; mso-width-source: userset; mso-width-alt: 4352;"> <col width="64" style="width: 48pt;" span="4"> <tbody> </tbody>


make a
 
Upvote 0
Here is a solution without helper columns. It does require you to create a list of all students, removing duplicates, and will report on each. If you just want a list of those with all A1 then you will probably need VBA code.
Excel Workbook
ABCDEF
1StudentCodeNameSubject CodeSubjectGradeEffort
21000Ben Smith10PHYSYear 10 PhysicsA+1
31000Ben Smith10PEYear 10 PEA1
41000Ben Smith10MATHYear 10 MathA-1
51001Jill Brown10PHYSYear 10 PhysicsB+1
61001Jill Brown10DRAMAYear 10 DramaA1
71002Simon West10PEYear 10 Phys EdA+2
81002Simon West10MUSICYear 10 MusicA-2
91002Simon West10ENGYear 10 EnglishA1
101002Simon West10MATHYear 10 MathA-1
111003Sarah White10PEYear 10 Phys EdB-2
121003Sarah White10DRAMAYear 10 DramaC3
13
14
15Ben SmithAll A1
16Jill Brownnot all A1
17Simon Westnot all A1
18Sarah Whitenot all A1
Sheet2
 
Upvote 0

Forum statistics

Threads
1,214,426
Messages
6,119,411
Members
448,894
Latest member
spenstar

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