Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
Heads up: Excel and Google Sheets do this differently.
=IF(B2>=90,"A",IF(B2>=80,"B",IF(B2>=70,"C",IF(B2>=60,"D","F"))))=IFS(B2>=90,"A",B2>=80,"B",B2>=70,"C",B2>=60,"D",TRUE,"F")Computed by a real spreadsheet engine on the sample data below.
| Student | Score | Grade |
| Alice | 95 | |
| Bob | 82 | |
| Carol | 74 | |
| David | 61 | |
| Eve | 45 |
=IF(B2>=90,"A",IF(B2>=80,"B",IF(B2>=70,"C",IF(B2>=60,"D","F"))))→A
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need it for your exact data?
Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.
Yes — build a two-column grade table (score cutoffs, letters) and use VLOOKUP with approximate match (TRUE): =VLOOKUP(B2,GradeTable,2,TRUE).
IFS is available in Excel 2019 and Microsoft 365. For older versions, use nested IF.
Replace #N/A, #DIV/0!, and other errors with a blank or a friendly message using IFERROR or IFNA. Works in Excel and Google Sheets.
Error fixNested IF formulas not working in Excel and Google Sheets — fix bracket mismatches, wrong evaluation order, overlapping conditions, and the 64-nesting limit.
How-toUse SUMIF with wildcard criteria (*text*) to sum values in a column whenever a related column contains a specific substring.
How-toChain multiple IF functions inside each other to test several conditions and return different results for each scenario.
How-toCombine IF with AND or OR to test multiple conditions simultaneously and return a result based on whether all or any are true.
How-toUse IF with AND to return a value only when all specified conditions are simultaneously true in Excel or Google Sheets.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: