Reputation: 399
In Excel I have a list of students that do an exam, some of them passed the exam and others are failed. I want to calculate the pass rate(score) in percentage. For example 40% of students are passed.
Upvotes: 0
Views: 19201
Reputation: 36
Have you tried this:
count the cells with the value passed,
divided that through the count of all cells
format outcome as percentage:
=countif(B2:B6; "passed")/ counta(B2:B6)
Upvotes: 2
Reputation: 11556
Use COUNTIF
to count the rows having the value 'PASS' and divide it by the total count
. And use ##%
format with TEXT
function to make it to a percentage value.
Formula
=TEXT(COUNTIF(A1:An, "PASS") / COUNTA(A1:An), "##%")
Now could change the PASS
value and the column range as per your requirement.
Upvotes: 0