Dashboard Mode - Nested IF functions
Goal
We want to classify student scores into grades: A, B, C, or Fail based on their marks.
We want to classify student scores into grades: A, B, C, or Fail based on their marks.
| Student | Score |
|---|---|
| Alice | 92 |
| Bob | 85 |
| Charlie | 73 |
| Diana | 58 |
| Edward | 40 |
=IF(B2>=90,"A",IF(B2>=80,"B",IF(B2>=70,"C","Fail")))=COUNTIF(C2:C6,"A")=COUNTA(C2:C6)-COUNTIF(C2:C6,"Fail") gives number passed.=((COUNTA(C2:C6)-COUNTIF(C2:C6,"Fail"))/COUNTA(C2:C6))*100+----------------------+--------------------+ | Student Scores | Grade Counts | | (Table with Scores) | A: [count of A] | | | B: [count of B] | | | C: [count of C] | | | Fail: [count Fail]| +----------------------+--------------------+ | Pass Rate: [pass rate]% | +--------------------------------------------------+
You can add a filter to select students by score range or name.
If you filter to show only students with scores above 80, which students and grades will be visible? What would the pass rate be for those students?