Excel IFS function
Checks conditions in order and returns the result of the first one that is true. It replaces nested IFs. In Spanish Excel it is called SI.CONJUNTO.
Syntax
English Excel
=IFS(logical_test1, value_if_true1, [logical_test2, value_if_true2], …)
Spanish Excel (Mexico)
=SI.CONJUNTO(prueba_lógica1, valor_si_verdadero1, [prueba_lógica2, valor_si_verdadero2], …)
Spanish Excel (Spain, Latin America)
=SI.CONJUNTO(prueba_lógica1; valor_si_verdadero1; [prueba_lógica2; valor_si_verdadero2]; …)
| Argument | What it is |
|---|---|
| logical_test1 | The first condition. |
| value_if_true1 | Its result. |
| logical_test2, value_if_true2optional | More pairs. |
Example
IFS(test1, value1, test2, value2…) replaces nested IFs: it returns the value of the first test that is true. End with TRUE as "in any other case".
=IFS(B2>=90,"A",B2>=80,"B",TRUE,"C")
Common mistake
If none is true it returns #N/A: end with TRUE and a value for "anything else".
About Ads
This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.
Ads help us keep WebHerramientas free for everyone
Practice IFS
Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons
IFS
IFS(test1, value1, test2, value2…) replaces nested IFs: it returns the value of the first test that is true. End with TRUE as "in any other case".
In C2, assign "A" for 90 or more, "B" for 80 or more and "C" otherwise, using IFS.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Student | Score | Level | |
| 2 | Ana | 95 | ||
| 3 | Luis | 82 | ||
| 4 | Sofía | 90 | ||
| 5 | Diego | 64 | ||
| 6 | Valeria | 79 | ||
| 7 | Mateo | 80 | ||
| 8 |
Tip: while typing, click a cell or drag across several to insert their reference.
Frequently asked questions
- What is IFS called in Spanish?
- In Spanish Excel it is SI.CONJUNTO. The formula =IFS(B2>=90,"A",B2>=80,"B",TRUE,"C") is written =SI.CONJUNTO(B2>=90;"A";B2>=80;"B";VERDADERO;"C") (or with commas in Mexico).
- Why does IFS use semicolons in some Excel versions?
- It depends on regional settings. Where the comma is the decimal mark (Spain, much of South America), Excel separates arguments with semicolons. English Excel and Mexican Spanish Excel use commas.
- What is the most common IFS mistake?
- If none is true it returns #N/A: end with TRUE and a value for "anything else".