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
OU(OR)
Returns TRUE when at least one test is true.
What it does
OR checks two or more tests and returns TRUE if any of them is TRUE. It returns FALSE only when all of them are FALSE.
Syntax
=OU(logical1; [logical2]; …)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
- A test that gives TRUE or FALSE. Add as many as you need.
Example
Is the day in A2 part of the weekend?
| A | B | |
|---|---|---|
| 1 | Day | Weekend? |
| 2 | Sunday | VRAI |
The formula in B2:
=OU(A2="Saturday";A2="Sunday")Result: VRAI
A2 holds Sunday. The first test (Saturday) is FALSE and the second (Sunday) is TRUE, and one TRUE is enough.
Common mistakes
- Writing OR between two tests, as in a sentence. Excel has no such operator; put the tests inside
OR, separated like any other arguments. - Using
ORwhen every condition must hold. That'sAND.
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 | OR | , |
| Deutsch | ODER | ; |
| Français | OU | ; |
| Español (España) | O | ; |
| Español (México) | O | , |
| 日本語 | OR | , |
| 한국어 | OR | , |
| 繁體中文 | OR | , |
| ไทย | OR | , |
| ខ្មែរ | OR | , |
| Tiếng Việt | OR | ; |