IF / Teacher

Assign Letter Grades Based on Score

I want to automatically assign 'A', 'B', 'C', or 'F' based on the numeric score in the adjacent cell.

formula.xlsx
=IF(B2>=90,"A",IF(B2>=80,"B",IF(B2>=70,"C","F")))

How it works: This formula uses nested IF statements to check conditions sequentially. It first checks if the score in B2 is 90 or above; if true, it assigns 'A'. If false, it moves to the next IF, checking if the score is 80 or above for 'B', and so on. The conditions are ordered from highest to lowest, ensuring that a score of 95 correctly receives an 'A' before being evaluated against the '>=80' condition. The final 'F' catches all scores below 70. This automates the grading process, saving time and ensuring consistent application of grading criteria.

Data Setup

Student Name Score
Alice 92
Bob 85
Charlie 73
David 68
Eve 95
Frank 79
Grace 81
Heidi 62

Step-by-Step Guide

1

Open your Excel spreadsheet containing student scores. Assume scores are in column B, starting from cell B2.

2

In cell C2 (or any adjacent empty cell where you want the grade to appear), enter the following formula: `=IF(B2>=90,"A",IF(B2>=80,"B",IF(B2>=70,"C","F")))`

3

Press Enter to see the letter grade for the first student.

4

Drag the fill handle (the small square at the bottom-right corner of cell C2) down to apply the formula to all other student scores in column B.

Explore More