FormulaCraft

How to assign a letter grade from a score in Excel and Google Sheets

Topic:IF, IFS & nested conditions

Heads up: Excel and Google Sheets do this differently.

Excel
=IF(B2>=90,"A",IF(B2>=80,"B",IF(B2>=70,"C",IF(B2>=60,"D","F"))))
Google Sheets
=IFS(B2>=90,"A",B2>=80,"B",B2>=70,"C",B2>=60,"D",TRUE,"F")

Verified example

Computed by a real spreadsheet engine on the sample data below.

StudentScoreGrade
Alice95
Bob82
Carol74
David61
Eve45

=IF(B2>=90,"A",IF(B2>=80,"B",IF(B2>=70,"C",IF(B2>=60,"D","F"))))A

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1In a grade column (e.g., C2), enter the nested IF formula: =IF(B2>=90,"A",IF(B2>=80,"B",IF(B2>=70,"C",IF(B2>=60,"D","F")))).
  2. 2In Google Sheets you can use the cleaner IFS version: =IFS(B2>=90,"A",B2>=80,"B",B2>=70,"C",B2>=60,"D",TRUE,"F").
  3. 3Copy the formula down all student rows to grade everyone at once.

Tips

Need the Google Sheets version instead? Open Sheets variant in workspace →

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

Can I use VLOOKUP instead of nested IF for grades?

Yes — build a two-column grade table (score cutoffs, letters) and use VLOOKUP with approximate match (TRUE): =VLOOKUP(B2,GradeTable,2,TRUE).

Does IFS work in Excel?

IFS is available in Excel 2019 and Microsoft 365. For older versions, use nested IF.

More on IF, IFS & nested conditions

See all →

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: