OR function

The OR function returns true if any of the provided arguments are logically true, and false if all of the provided arguments are logically false.

Sample Usage

OR(A2 = "foo", A3 = "bar")

OR(TRUE,FALSE,TRUE)

OR(A1:A10,B1:B10)

OR(0,1,2,3)

Syntax

OR(logical_expression1, [logical_expression2, ...])

  • logical_expression1 - An expression or reference to a cell containing an expression that represents some logical value, i.e. TRUE or FALSE, or an expression that can be coerced to a logical value.

  • logical_expression2, ... - [ OPTIONAL ] - Additional expressions or references to cells containing expressions representing some logical values, i.e. TRUE or FALSE, or expressions that can be coerced to logical values.

Notes

  • The number 0 is logically false; all other numbers (including negative numbers) are logically true.

See Also

NOT: Returns the opposite of a logical value - `NOT(TRUE)` returns `FALSE`; `NOT(FALSE)` returns `TRUE`.

AND: The AND function returns true if all of the provided arguments are logically true, and false if any of the provided arguments are logically false.

Examples

Returns TRUE if at least one argument is TRUE, accepts both logical_value and range parameter.

true
Visit the Learning Center

Using Google products, like Google Docs, at work or school? Try powerful tips, tutorials, and templates. Learn to work on Office files without installing Office, create dynamic project plans and team calendars, auto-organize your inbox, and more.

Search
Clear search
Close search
Main menu
2846637284171836023
true
Search Help Center
true
true
true
true
true
35
false
false