ExcelFormulas logoExcelFormulas.
Ask AI
Logical & ConditionalVerified QA Tested

OR.

Returns TRUE if any argument is TRUE; returns FALSE if all arguments are FALSE.

Category: Logical & Conditional
ExcelExcel 365Excel 2021Excel 2019Google Sheets

How it works.

OR evaluates multiple conditions and returns TRUE if at least one condition is met. It returns FALSE only if all conditions are FALSE. It is commonly used inside IF statements to check alternative conditions.

💡 In simple terms.

Checks multiple rules. It outputs TRUE if at least one rule is met; it only outputs FALSE if all rules fail.

Everyday Analogy

"Think of this like qualifying for a free drink. You qualify IF you have a coupon OR it is your birthday. You only need one of them to be true!"

Formula syntax.

Standard Excel Notation
=OR(logical1, [logical2], ...)
Tip:Arguments wrapped in square brackets [like_this] are optional; all other arguments are required.

Formula arguments.

Every parameter accepted by the OR function is detailed below.

logical1Required

The first condition to test.

Example value: B2<=18
logical2Optional

Additional conditions to test.

Example value: C2="Yes"

Simple example.

Step-by-Step Scenario

Discount Qualifier

Verify if student age is 18 or under OR student ID status in column C is "Yes".

AgeStudent IDStatusQualifies
21YesActive——
17NoActive——
25NoActive——
Applied Formula
=OR(B2<=18, C2="Yes")
Expected Result:Calculated output

Evaluates OR over the sample table cells, placing the verified output in cell D2:D6.

Formula generator.

Full Generator Wizard

Customize the argument fields below to generate a tailored OR formula ready to paste directly into your worksheet.

Generated FormulaReady to copy

Expected result behavior.

Returns "Calculated output" based on sample evaluation criteria and active cell references.

Sample Output:Calculated output
Output Type:Text String

Best Practices

  • Use OR to check if a cell contains one of several options: e.g. `=OR(A2="Red", A2="Green", A2="Blue")`.

Common Mistakes

  • If you supply array ranges to OR, they must be formatted correctly, otherwise it can return #VALUE! or slow down calculation.
Compatibility Database

Platform & version compatibility.

Verified platform compatibility matrix based on actual spreadsheet calculation engine specifications.

Excel✓
Supported
Excel 365✓
Supported
Excel 2021✓
Supported
Excel 2019✓
Supported
Google Sheets✓
Supported
Microsoft Excel History & Version Availability

Core standard function supported across all modern and legacy Microsoft Excel versions (365, 2021, 2019, 2016, 2013, 2010), as well as Excel for the Web and Mac.

Google Sheets Compatibility Notes

100% compatible with Google Sheets. Uses identical argument order, data types, and standard calculation logic.

Frequently asked questions.

Technical Q&A
Can I use OR across different worksheets in Excel?↓

Yes. You can reference cells located on other sheets by including the sheet name followed by an exclamation mark, for example: =OR(Sheet2!A2:A10). If the sheet name contains spaces, enclose it in single quotes: ='Q1 Report'!A2:A10.

What is the most common reason for errors in OR?↓

If you supply array ranges to OR, they must be formatted correctly, otherwise it can return #VALUE! or slow down calculation.

Does OR work identically in Google Sheets?↓

Yes, OR is supported in both Microsoft Excel and Google Sheets with standard evaluation behavior.