A teacher uses the following table in MS-Excel in the range A1 : E2 to allot grades on the basis of marks.
Reference Table (A1 : E2) :
| A | B | C | D | E | F |
|---|---|---|---|---|---|
| 1 | 0 | 40 | 60 | 75 | 90 |
| 2 | F | D | C | B | A |
If a student's marks are entered in cell A10, then which formula should be entered in cell B10 to display the correct grade?
The correct formula is =HLOOKUP (A10, $A$1 : $E$2, 2, TRUE).
HLOOKUP searches the first row of a horizontally laid out table, and row index 2 returns the grade written below the matching mark.
TRUE gives an approximate match, returning the largest value not greater than the marks, which works because row 1 is in ascending order: 0, 40, 60, 75, 90.
So 82 marks falls under 75 and returns B, whereas FALSE would demand an exact match and give #N/A for 82.
VLOOKUP searches the first column vertically, which does not suit this table, and the $ signs keep the range fixed when the formula is copied down.
Want more like this? Create a free account to practise a full test, track your progress, and get spaced-repetition review.
Practise on Mcqkart →🎓 Book an expert →