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.
Returns the result for the first condition that is true.
IFS(logical_test1, value_if_true1, …)Example: =IFS(B2>=90,5,B2>=75,4,TRUE,3)
Available in: Excel 2019+
IFS checks several conditions in order and returns the value for the first one that is true, with no nesting: =IFS(test1, value1, test2, value2, …). It is available in Excel 2019 and Microsoft 365.
| 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 |
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