Number of students with low grades

tirion

New Member
Joined
Jun 10, 2006
Messages
11
I would like to count the number of students with low grades (F), and how many of them have 1, 2, 3 or more of these.
The problem is - there could be one student with, for example three F's, but he is stll counting as only one student.
Let's say I have 22 students total (their names in ROWS) and the names of the 14 subjects (in COLUMNS).
Any suggestions?
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Can you provide a small sample of your data, along with expected results?
 
Upvote 0
For the number of students that have at least one low grade (1)...

=SUM(IF(MMULT(--(B2:O23=1),TRANSPOSE(COLUMN(B2:O23)^0)),1))

For the number of students that have three or more low grades (1)...

=SUM(IF(MMULT(--(B2:O23=1),TRANSPOSE(COLUMN(B2:O23)^0))>=3,1))

Note that both formulas need to be confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!
 
Upvote 0
never mind the .jpg link, here is the html and streamlined version of the same:
Students Chart.xls
ABCDEFGHIJ
1studentssub1sub2sub3sub4sub5sub6sub7sub8sub9
2a555555555
3b224423111
4d545551445
5d555555555
6e454545134
7f224523214
8g445545225
9h555555515
10i555555155
11j455555445
12k335531224
13l555555555
14m445555135
15n555555415
16o244232211
17p555555515
Upis


Here we have another student (o) with 2 low grades, and he would have to be in the CELL: students with 2 low grades

Let's see...
 
Upvote 0
Uh, sorry Domenic... I wanted to make things easier.
Give me a minute to try your formulas...
Thanks
 
Upvote 0
This is the one. However, what if I want only the number of students with 2 low grades? When I try this with your formula, it adds both student b with 3 low grades and student o with 2 (If we look at the new picture), and I want just one with 2 low grades - student o.
Thank you very much.
 
Upvote 0
Your saying if the number is 3 or less then there grades are F

Must be confirmed with:
Crtl+Shift+Enter

=SUM(--(MMULT(--ISNUMBER(MATCH(B2:J17,{1,2,3},0)),TRANSPOSE(COLUMN(B2:J17))^0)>0))

A non-cse
Just hit enter:

=SUMPRODUCT(--(MMULT(--ISNUMBER(MATCH(B2:J17,{1,2,3},0)),{1;1;1;1;1;1;1;1;1})>0))
 
Upvote 0
In that case, try...

=SUM(IF(MMULT(--(B2:O23=1),TRANSPOSE(COLUMN(B2:O23)^0))=2,1))

Note that =1 in blue signifies that you're interested in the low grade 1, and =2 signifies that you're interested in students with two low grades of 1.

Hope this helps!
 
Upvote 0
No, not exactly. This is European system of evaluation (or at least it was earlier) where equivalent to best grade (A) is number 5, and to lowest grade is number 1.

Let's say we are looking at the HtmlMaker made picture above.

Number 1 is the lowest grade, and I'm interested in counting just those students with 1's. I also want number of students with low grades (11) number of those with just one low grade (9), with two low grades (1) and with three or more low grades (1).

"This is more complicated than I thought."

Still waiting...
 
Upvote 0

Forum statistics

Threads
1,215,002
Messages
6,122,652
Members
449,092
Latest member
peppernaut

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