Letter grade
| A | |
|---|---|
| 1 | Score |
| 2 | 84 |
Formula: C1: =IFS(A2>=90,"A",A2>=80,"B",A2>=70,"C",TRUE,"F")
Result: B
Tests run in order; 84 fails the first test and passes the second. The final TRUE acts as an "everything else" catch-all.
IFS with worked examples you can test in the live grid. The argument details are in the Excel guide.
The arguments and common errors are covered in the IFS Excel guide; check the function help in Google Sheets for its own argument list.
| A | |
|---|---|
| 1 | Score |
| 2 | 84 |
Formula: C1: =IFS(A2>=90,"A",A2>=80,"B",A2>=70,"C",TRUE,"F")
Result: B
Tests run in order; 84 fails the first test and passes the second. The final TRUE acts as an "everything else" catch-all.
| A | |
|---|---|
| 1 | Weight (lb) |
| 2 | 3 |
Formula: C1: =IFS(A2<=1,4.5,A2<=5,7.9,TRUE,12.5)
Result: 7.9
Up to 1 lb costs 4.50, up to 5 lb costs 7.90, anything heavier 12.50.
| A | |
|---|---|
| 1 | Value |
| 2 | 50 |
Formula: C1: =IFS(A2>100,"High")
Result: #N/A
With no matching test and no TRUE fallback, IFS returns #N/A.
A tiny spreadsheet with example data. Edit the formula or any number and see the result.
Formula in F2: =IFS(B2>=90,"A",B2>=75,"B",TRUE,"C")
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Student | Score | Extra credit | Attempts | Result | |
| 2 | Ann | 92 | Yes | 2 | A | |
| 3 | Bob | 74 | No | 0 | ||
| 4 | Cy | 58 | Yes | 3 | ||
| 5 | Dee | 81 | No | 1 | ||
| 6 | Eli | 66 | 2 |
Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.
Enter — commit · F2 — edit · F4 — $ in a reference · Ctrl+C/Ctrl+V — copy and paste · Ctrl+Z — undo
Esc or F6 — leave the sheet for the «Check» button · Shift+Tab in the first cell — back to the page