Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=IF(A2>=90,"A",IF(A2>=80,"B",IF(A2>=70,"C","F")))Computed by a real spreadsheet engine on the sample data below.
| Score | Grade |
| 95 | |
| 82 | |
| 74 | |
| 55 |
=IF(A2>=90,"A",IF(A2>=80,"B",IF(A2>=70,"C","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.
Excel and Google Sheets allow up to 64 levels of nesting, but more than 4–5 levels becomes very hard to read and debug.
IFS(condition1, value1, condition2, value2, …) is a cleaner alternative to nested IFs when you have many conditions. It is available in Excel 2019+ and all versions of Google Sheets.
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-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.
How-toUse IF with OR to return a value when at least one of several conditions is 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: