Excel OR Function: Syntax, Examples & Tips

The OR function evaluates multiple conditions in Excel, returning TRUE if at least one condition is true, aiding in data analysis.
Excel
=OR(logical1, [logical2], ...)

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

Need more than a single OR formula? Try our free AI for Excel — it reads your entire spreadsheet, answers questions in plain English, and builds charts and analysis in the same chat.

On this page
  1. Parameters
  2. What is an OR Formula in Excel?
  3. A Practical Example
  4. OR Formula
  5. Result of the Formula
  6. Why Use OR?
  7. Key Takeaways:
  8. Example use case

Parameters

logical1:
The first condition or expression that you want to evaluate. This argument is required.

logical2:
The second condition or expression that you want to evaluate. This argument is optional and can be repeated for additional conditions.

...:
Additional conditions or expressions that you want to evaluate. You can include up to 255 logical conditions in total.

What is an OR Formula in Excel?

The OR function in Excel is a logical function that allows you to test multiple conditions at the same time. It evaluates each condition and returns TRUE if at least one of the conditions is met; otherwise, it returns FALSE. This function is particularly useful when you want to check if any of several criteria are true.

In simpler terms, the OR function helps you make decisions based on multiple conditions, making it easier to analyze complex data.

A Practical Example

Imagine you are managing a student performance report, and you have the following data in an Excel spreadsheet:

Student Performance Table:

StudentScoreAttendance
Alice8590%
Bob7095%
Charlie6080%
David9085%
Eve7588%

You want to find out if any student has either a score below 65 or attendance below 85%.

OR Formula

To check if any student has a score below 65 or attendance below 85%, you would use the OR formula as follows:

Excel
=OR(B2<65, C2<0.85)

Breakdown of the Formula:

  • B2<65: This condition checks if the score is less than 65.
  • C2<0.85: This condition checks if the attendance is less than 85%.
  • The OR function evaluates both conditions and returns TRUE if either condition is met.

Result of the Formula

When you apply the formula to each student, it will return TRUE for Charlie, who has a score below 65, and FALSE for the others. The output would be:

StudentResult
AliceFALSE
BobFALSE
CharlieTRUE
DavidFALSE
EveFALSE

Here, the OR function identifies that Charlie does not meet the performance criteria.

Why Use OR?

The OR function is particularly useful when you need to evaluate multiple conditions simultaneously. It allows you to make decisions based on a combination of criteria without having to create complex nested formulas.

Key Takeaways:

  • OR: Tests multiple conditions and returns TRUE if at least one condition is met.
  • Efficient Decision Making: Helps you evaluate data based on several criteria at once.
  • Common Use Cases: Ideal for performance evaluations, conditional formatting, and any scenario where multiple criteria need to be assessed.

Understanding how to use the OR function can significantly enhance your data analysis capabilities in Excel, enabling you to make informed decisions based on multiple conditions.

Happy analyzing!

Example use case

You have a table where Column A contains product categories and Column B contains the corresponding sales figures for each category. You can use the OR function to check if the sales figures for a specific category, such as "Electronics" or "Clothing," exceed a certain threshold. This allows for quick identification of high-performing categories and aids in inventory management and marketing strategies without the need for complex conditional statements.

Beyond the OR function: Better Analyst is a full Excel AI that goes well past individual formulas. Upload any spreadsheet and ask questions in plain English — you'll get formulas, data analysis, and charts back in seconds. It's a free AI Excel assistant that works with any .xlsx, .xls, or .csv file — no plugins, no Microsoft 365 required.

Don't have a spreadsheet yet? Use our free AI spreadsheet generator to turn a text prompt into a downloadable Excel file — a full AI Excel sheet maker that builds headers, columns, and formulas from your description.

Need more help with Excel formulas?

Create a free account for formula help, explanations, and spreadsheet analysis. Usage limits depend on your plan.

Explore all Excel formulas

Browse our complete library of Excel formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.

OR Function in Excel - Better Analyst