Excel function

ORfunction

Returns TRUE if any condition is true, FALSE if all are false.

All versions
=OR(B2>=90, C2>=90)
A
B
C
D
E
1
2
3
4
5
6
7

Click a cell in the table to change row. Lower the minimums to 80 and more rows become TRUE. Compare with AND using the same minimums. Try breaking it on purpose to see the errors.

Result

TRUE

row
B2You can also click a cell in the table

The person (row) whose conditions are checked. Click another row in the table.

Reading minimum

Condition 1: is the Reading (column B) score at least this?

Math minimum

Condition 2: is the Math (column C) score at least this?

What is the OR function?

=OR(logical1, [logical2], ...)

OR returns TRUE when any condition is true and FALSE when all are false. Use it when meeting one of several conditions is enough, such as Reading or Math being 90 or more.

Like AND, it is usually placed in the condition of IF. Compare the results with AND using the same minimums to see the difference.

Arguments

logical1
The first condition that evaluates to TRUE or FALSE, for example B2>=90.
logical2, ...
Optional. Up to 255 conditions.

OR examples

  1. Example 1. Either subject 90 or more

    =OR(B2>=90, C2>=90)

    Liam has Reading 85 but Math 92, so TRUE. Emma is under 90 in both, so FALSE. This is how the sheet first opens.

  2. Example 2. With IF

    =IF(OR(B2<60, C2<60), "Retake", "Pass")

    "Retake" if either subject is under 60. That applies to Olivia (Reading 58) and Lucas (Math 55).

  3. Example 3. One of several values

    =OR(A2="Seoul", A2="Busan")

    TRUE if the branch is Seoul or Busan.

Common mistakes

FAQ

How many conditions?
Up to 255.
Exactly one of two?
Use XOR. It is FALSE when both are true.
Show words instead?
Wrap it in IF: =IF(OR(B2>=90, C2>=90), "Has a top subject", "").