SheetsLessons
Logical function

OR function in Google Sheets

OR returns TRUE when at least one of its conditions is TRUE. Use it when any one of several situations should trigger the same result.

Syntax

=OR(logical1, [logical2, ...])
logical1
The first condition.
logical2, ...
Optional. More conditions.

Practice OR

Task 1 of 1

Customers get a refund if the order was more than 5 days late OR arrived damaged. Return TRUE/FALSE in D2.

D2
fx

Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.

OR examples

Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.

ABCD
1StudentClassScorePassed
2PriyaA92TRUE
3LeoB67FALSE
4ChloeA48FALSE
5MateoB81TRUE
6InesCFALSE
7KaiC75TRUE
Test scores (Ines missed the test)
FormulaResultWhat it shows
=OR(C4>=70, B4="A")TRUEChloe failed but is in class A.
=OR(C3>90, C4>90)FALSENeither score is above 90.
=OR(D2:D7)TRUEDid anyone pass?

Tips and common mistakes

  • Inside COUNTIFS and SUMIFS every condition is AND. To get OR there, add separate COUNTIF/SUMIF results together.

Related functions