OR Function
OR checks if ANY condition is TRUE.
Syntax
Parameters
| Parameter | Description | Required |
|---|---|---|
| logical1 | The first condition to test. | Required |
| logical2 | Optional additional conditions to test. | Optional |
Basic Example
Check if any condition is true
=OR(A1>100, B1>100)Returns TRUE if either A1 > 100 or B1 > 100.
Advanced Examples
Example 1: OR with IF
Combined logicUse OR within IF for alternative criteria
=IF(OR(A1="Manager", A1="Director"), "Executive", "Staff")How OR Works
OR evaluates all conditions and returns TRUE if at least one condition is TRUE.
Important Notes & Limitations
Only one condition needs to be TRUE for OR to return TRUE.
For ALL conditions to be TRUE, use AND instead.
Common Errors & Fixes
#VALUE!Non-boolean argumentsFix: Ensure all arguments evaluate to TRUE/FALSE.
Download Practice File
OR
orPractice OR with Real Data
Download a sample CSV file with pre-populated data and practice exercises for the OR function. Works in both Excel and Google Sheets.
File format: CSV (comma-separated values) - opens in Excel, Google Sheets, and all spreadsheet apps
Related Tutorials
IF with AND / OR
Combining IF with AND OR logic lets a single formula test several conditions at once. Learn the syntax, nesting order and Excel and Google Sheets examples.
IFS Function with Multiple Conditions in Excel
The IFS function multiple conditions pattern replaces stacked nested IFs. Learn argument order, AND/OR tests, TRUE fallbacks and how to fix the #N/A error.