0
0
Excelspreadsheet~10 mins

Nested IF functions in Excel - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

This table shows student scores in column A and we want to assign letter grades in column B based on the score.

CellValue
A1Score
A285
A372
A459
A540
B1Grade
Formula Trace
=IF(A2>=80,"A",IF(A2>=60,"B",IF(A2>=40,"C","F")))
Step 1: A2>=80
Step 2: IF(TRUE,"A",IF(A2>=60,"B",IF(A2>=40,"C","F")))
Cell Reference Map
    A      B
1 |Score |Grade
2 |  85  |  -> formula here
3 |  72  |
4 |  59  |
5 |  40  |
The formula in B2 references cell A2 to check the score and assign a grade.
Result
    A      B
1 |Score |Grade
2 |  85  |  A
3 |  72  |
4 |  59  |
5 |  40  |
The formula in B2 evaluates the score 85 and assigns grade 'A' because 85 is >= 80.
Sheet Trace Quiz - 3 Questions
Test your understanding
What grade will the formula assign if the score is 72?
AC
BA
CB
DF
Key Result
Nested IF checks conditions in order and returns the first matching result.