This page isn't translated yet, so its text is in English. Function names and formulas are shown in your Excel language.
Excel function · Logic
SI.CONDITIONS(IFS)
Checks several tests in order and returns the result of the first true one.
What it does
IFS replaces a chain of IF functions nested inside each other. Write the tests from the strictest to the loosest: Excel stops at the first one that is TRUE.
Syntax
=SI.CONDITIONS(logical_test1; value_if_true1; [logical_test2; value_if_true2]; …)Arguments in square brackets are optional, and … means you can add more of the same. In this Excel language, arguments are separated by ;
Arguments
- logical_test
- A test that gives TRUE or FALSE.
- value_if_true
- What to return if this is the first true test.
Example
Grades: 90 or more is A, 80 or more is B, 70 or more is C, the rest is D. What does a score of 84 get?
| A | B | |
|---|---|---|
| 1 | Score | Grade |
| 2 | 84 | B |
The formula in B2:
=SI.CONDITIONS(A2>=90;"A";A2>=80;"B";A2>=70;"C";VRAI;"D")Result: B
84>=90 is FALSE, so Excel moves on. 84>=80 is TRUE, so the answer is B and the later tests are never checked. The last test, TRUE, catches every score below 70.
Common mistakes
- Tests in the wrong order. If 70 or more comes first, a score of 95 stops there and gets C.
- No catch-all at the end. When no test is TRUE,
IFSreturns #N/A; end withTRUEand a default result.
In other Excel languages
Excel translates function names, and in some languages the argument separator too. Type the name your Excel shows.
| Excel language | Function name | Separator |
|---|---|---|
| English | IFS | , |
| Deutsch | WENNS | ; |
| Français | SI.CONDITIONS | ; |
| Español (España) | SI.CONJUNTO | ; |
| Español (México) | SI.CONJUNTO | , |
| 日本語 | IFS | , |
| 한국어 | IFS | , |
| 繁體中文 | IFS | , |
| ไทย | IFS | , |
| ខ្មែរ | IFS | , |
| Tiếng Việt | IFS | ; |