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
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.
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-toCheck if a cell contains specific text with IF + ISNUMBER + SEARCH and return any value you want — plus case-sensitive checks, multiple keywords, and wildcard alternatives.
How-toStop formulas showing 0: wrap them in IF to return an empty string, suppress zeros with a custom number format, or hide them sheet-wide — plus the VLOOKUP-returns-0 fix.
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.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: