Excel
OR function in Excel
Returns TRUE if any argument is TRUE
=OR(logical1, [logical2], ...)OR syntax and parameters
Two arguments, one required.
- logical1booleanRequired
Required. The first condition that you want to test that can evaluate to either TRUE or FALSE.
- logical2booleanRepeating
Optional. Additional conditions that you want to test that can evaluate to either TRUE or FALSE, up to a maximum of 255 conditions.
OR examples
Formulas you'll actually reuse.
Does the order belong to either of two regions?
=OR(A2 = "West", A2 = "North")Result
TRUEFlag for manual review when either condition trips:
=IF(OR(D2 > 5000, C2 = "Enterprise"), "Review", "Auto-approve")Result
"Review"
OR in Google Sheets
Same name — your formula ports as-is.
Try OR in the playground
Edit the example — nothing to install.
Preloaded with the OR formula from Example 1 — change anything and watch it respond.
Loading the editor…
Related functions
More ways Excel gets this done.
- ANDReturns TRUE if all of its arguments are TRUELogicalGoogle Sheets
- BYCOLApplies a LAMBDA to each column and returns an array of the resultsLogicalGoogle Sheets
- BYROWApplies a LAMBDA to each row and returns an array of the resultsLogicalGoogle Sheets
- FALSEReturns the logical value FALSELogicalGoogle Sheets
- IFSpecifies a logical test to performLogicalGoogle Sheets
- IFERRORReturns a value you specify if a formula evaluates to an error; otherwise, returns the result of the formulaLogicalGoogle Sheets