Nested formula

Occasional Visitor

Hello! My name is Oromokoma Charles. I am trying to use the nested =if(and() to write an expression that grades students according to a number of cells for instance students' scores are entered in cells B1:E1.

Am grading them using cell F1 which has the sum of B1:E1 but for a student to get grade A, F1 must be (F1<=12) and also B1,C1,D1 and E1 must not have a 9 in any of them (B1,C1,D1,E1<9 each). For a student to get grade B, F1 must be F1<=24 with the same conditions of B1,C1,D1 and E1 above. For a student to get grade C, F1must be (F1<=28) and the conditions of B1to E1 must be true still and finally for a student to get grade D, F1<=32 with or without meeting the conditions of B1 to E1. Any student with F1>28 gets ungraded. A student who meets the conditions of F1 but violates the conditions of B1 to E1 gets the next grade. So if these students did the exam set and scored as follows. I want their results sheet to look this this:

                   B   C   D   E     F

Student P    1   1   1    1    4 grade1

student Q    2   1   1    8   12 grade 1

student R    1    1   1    9   12 grade 2

student S     4    2   5   9    20 grade 3

student T     6    6   6   6    24 grade 2

How do I write a nest =if(and()that can correctly outputs that?


1 Reply


Shouldn't Student R get a C (grade 3) since E3=9?


In G1 as an array formula confirmed with Ctrl+Shift+Enter:




Fill down.