EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Certification Courses
  • 120+ Courses All in One Bundle
  • Login
Home Excel Excel Resources Excel Tips OR Formula in Excel
Secondary Sidebar
Excel Functions
  • Excel Tips
    • Recover Document in Excel
    • Excel Shortcut to Select Row
    • Excel Header Row
    • Excel Insert Button
    • Excel Translate
    • Budget in Excel
    • KPI Dashboard in Excel
    • Blank Invoice Excel Template
    • Write Formula in Excel
    • Auditing Tools in Excel
    • Autofit Row Height in Excel
    • Formatting Text in Excel
    • Add Rows in Excel Shortcut
    • Divide Cell in Excel
    • Compare Two Columns in Excel for Matches
    • Excel Troubleshooting
    • Unprotect Excel Workbook
    • Subtract Date in Excel
    • Carriage Return in Excel
    • Negative Numbers in Excel
    • Worksheets in Excel
    • Excel Match Multiple Criteria
    • Exponential Moving Average Formula
    • Sentence Case in Excel
    • Excel Reverse Order
    • Excel Timesheet Template
    • Weighted Average in Excel
    • CTRL Shift-Enter in Excel
    • Excel Expense Tracker
    • INDEX MATCH Function in Excel
    • Percent Change in Excel
    • Drag and Drop in Excel
    • Shade Alternate Rows in Excel
    • Excel Database Template
    • Inverse Matrix in Excel
    • New Line in Excel Cell
    • Format Cells in Excel
    • Excel Text with Formula
    • Project Management Template in Excel
    • Vlookup vs Index Match
    • Embedded in Excel
    • Count Colored Cells in Excel
    • Excel Hacks
    • Column Header in Excel
    • Database Function in Excel
    • Excel Spell Check
    • Linear Interpolation in Excel
    • Convert Excel to CSV
    • Excel Not Responding
    • Delta Symbol in Excel
    • Excel Mortgage Calculator
    • Excel Show Formula
    • Break Links in Excel
    • VLOOKUP Examples in Excel
    • Alternate Row Color Excel
    • Checklist in Excel
    • Microsoft Office Tips
    • Excel vs Access
    • Excel Change Case
    • Count Characters in Excel
    • Formula Bar in Excel
    • Invoice Template in Excel
    • Find and Replace in Excel
    • PowerPivot in Excel
    • Wildcard in Excel
    • Line Break in Excel
    • NULL in Excel
    • Text Formula in Excel
    • Family Tree in Excel
    • Insert Calendar in Excel
    • Page Setup in Excel
    • Search For Text in Excel
    • Switching Columns in Excel
    • 3D Cell Reference in Excel
    • Roadmap Template in Excel
    • Cell References in Excel
    • Excel Automation
    • Matching Columns in Excel
    • Evaluate Formula in Excel
    • How to Find Mean in Excel
    • How to Add Cells in Excel
    • Project Timeline in Excel
    • TODAY Formula in Excel
    • Poisson Distribution in Excel
    • YEAR Formula in Excel
    • REPLACE Formula in Excel
    • Create Spreadsheet in Excel
    • SEARCH Formula in Excel
    • HYPERLINK Formula in Excel
    • Pivot Table with Multiple Sheets
    • COLUMNS Formula in Excel
    • DAY Formula in Excel
    • RIGHT Formula in Excel
    • INDIRECT Formula in Excel
    • Excel IRR Formula
    • Pivot Table Sort
    • OR Formula in Excel
    • Pivot Table Formula in Excel
    • How to Edit Drop Down List in Excel?
    • WEEKDAY Formula in Excel
    • Chart Wizard in Excel
    • Time Difference in Excel
    • Lookup Table in Excel
    • SUBTOTAL Formula in Excel
    • LOOKUP Formula in Excel
    • Themes in Excel
    • Group Worksheets in Excel
    • Excel ISNUMBER Formula
    • 3D Maps in Excel
    • VLOOKUP Tutorial in Excel
    • Moving Columns in Excel
    • Grouping Columns in Excel
    • Excel Formula of Percentage
    • Excel Leading Zeros
    • Timesheet in Excel
    • Nested IF Formula in Excel
    • SUMIF Formula in Excel
    • Concatenation in Excel
    • Excel Insert Page Break
    • LEN Formula in Excel
    • Insert Comment in Excel
    • Excel Print
    • Fractions in Excel
    • Excel Add a Column
    • Borders in Excel
    • Excel Sum by Color
    • Excel vs Google Sheets
    • Calculate Percentage Increase in Excel
    • Excel Format Phone Numbers
    • Excel Search Box
    • Excel vs CSV
    • Excel vs Numbers
    • Excel Concatenate Date
    • Excel Bullet Points
    • Calculate Compound Interest in Excel
    • Find External Links in Excel
    • Excel Comma Style
    • Excel Remove Leading Spaces
    • Combine First and Last Name in Excel
    • How to Calculate Ratio in Excel
    • SUMPRODUCT Function with Multiple Criteria
    • Create Excel Template
    • Excel Greater than or Equal
    • Excel Keyboard Shortcuts
    • Excel Row vs Excel Column
    • Excel Operators
    • Excel Text Compare
    • Excel Uppercase Function
    • Excel Auto Numbering
    • Watermark in Excel
    • Excel Delete Row Shortcut
    • Excel Word Count
    • Row Count in Excel
    • Excel Grade Formula
    • Excel Percentage Difference
    • Excel Rows and Columns
    • Excel Group
    • Excel Move Columns
    • Excel Row Height
    • Excel Sparklines
    • Excel Drawing a line
    • Multiple IFS in Excel
    • Excel Strikethrough
    • Numbering in Excel
    • Share Excel Workbook
    • Excel Shortcut For Merge Cells
    • Excel OneDrive
    • Excel Track changes
    • Excel Hide Formula
    • Excel Filter Shortcuts
    • Excel 3D Reference
    • Protect Excel Workbook
    • Excel Moving Averages
    • Excel Row Limit
    • Excel Absolute Value
    • Excel Print Area
    • Excel Format Painter
    • Excel Separate text
    • Excel Autofit
    • Excel Columns to Rows
    • Excel Paste Shortcut Option
    • Excel Rows to Columns
    • Excel Insert Row Shortcut
    • Excel Extensions
    • Excel Unmerge Cells
    • Divide in Excel Formula
    • Excel Compare Two Columns
    • Not Equal To Excel
    • Excel Remove Duplicates
    • Excel Remove Spaces
    • Excel Calculate Age
    • Copy Excel Sheet
    • Excel Conditional Formatting Based on Another Cell Value
    • Excel Cell Reference
    • Excel Split Cell
    • Excel Circular Reference
    • Highlight Every Other Row in Excel
    • Errors in Excel
    • Excel Delete Pivot Table
    • Excel Pivot Table
    • Subtraction in Excel
    • Count Unique Values in Excel
    • Excel Highlight Duplicates
    • Excel Data Formatting
    • Random Numbers in Excel
    • Basic Excel Formulas
    • Page Numbers in Excel
    • Excel CAGR Formula
    • Excel Combine cells
    • IFERROR with VLOOKUP in Excel
    • Column Sort in Excel
    • Print Comments in Excel
    • Cheat Sheet of Excel Formulas
    • Remove Hyperlinks in Excel
    • Excel Drop Down List
    • Remove (Delete) Blank Rows in Excel
    • Relative Reference in Excel
    • Subscript in Excel
    • Superscript in Excel
    • Excel Insert Multiple Rows
    • Excel Absolute Reference
    • Unhide Columns in Excel
  • Excel Functions (12+)
  • Excel Tools (114+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (14+)
  • Lookup Reference Functions in Excel (35+)
  • Maths Function in Excel (47+)
  • TEXT and String Functions in Excel (26+)
  • Date and Time Function in Excel (24+)
  • Statistical Functions in Excel (59+)
  • Information Functions in Excel (4+)
  • Excel Charts (56+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (15+)
  • Excel Formula and Functions (22+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • EXCEL COURSE
  • Online Excel Data Analysis Course
  • Excel for Finance Course

OR Formula in Excel

By Arun GuptaArun Gupta

or formula in excel

OR Formula in Excel (Table of Contents)

  • OR Formula in Excel
  • How to Use OR Formula in Excel?

OR Formula in Excel

  • MS Excel provides several logical inbuilt functions; one of them is the OR function, which is used to test multiple scenarios or conditions at the same time. As it is a Logical function, it will only return True or False. A user can use the OR function with other Logical functions also like AND, OR, XOR, etc.
  • It will return true if any single argument or condition is true; else, it will return false. A user can test up to 255 arguments in the OR function.

Syntax of the ‘OR’ Function:

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

OR () – It will return a Boolean value which will be either true or false depending on the argument provided inside the or function.

OR Formula Syntax

The Argument in the Function:

  • Logical1: It is a mandatory field, first condition, or logical value that a user wants to evaluate.
  • Logical2: It is an optional field, it provided by the user which he wants to compare or test with other condition or logical value.

How to Use OR Formula in Excel?

OR Formula in Excel is very simple and easy. Let’s understand how to use the OR Formula in Excel with some examples.

All in One Excel VBA Bundle(120+ Courses, 30+ Projects)
Basic ExcelAdvanced ExcelVBA & MacrosExcel Dashboards
Pivot TablesStatistical FunctionsFinancial FunctionsCharts & Graphs
Price
View Courses
120+ Online Courses | 30+ Projects | 500+ Hours | Verifiable Certificates | Lifetime Access
4.9 (64,412 ratings)
You can download this OR Formula Excel Template here – OR Formula Excel Template

Example 1

A user has A, B, and C conditions that he wants to evaluate in the OR function.

Let’s see how the ‘OR’ function can solve his problem to calculate.

  • Open the MS Excel, Go to the Sheet where the user wants to execute his OR function.

OR Formula IN Excel 1-1

  • Create a Header Column with OR Result in the D column where we will execute the OR function.

OR Formula in Excel 1-2

  • Now apply the OR function in the cell D2.

OR Formula in Excel 1-3

  • Now it will ask for Logical1, which is available in the A column, then select the Value from the A2 cell.

OR Formula in Excel 1-4

  • Now it will ask for Logical2, Logical2, … which is available in the B column and C column.
  • Select Value from the B2 and C2 cells.

OR Formula in Excel 1-5

  • Press on the Enter Button, and the result is shown below.

OR Formula in Excel 1-6

  • Now Apply the Same Formula to Other Cells by just dragging the D2 formula till D5.

OR Formula in Excel 1

Summary of Example 1:

As the user wants to execute the OR function for different conditions, we have done in the above example.

As we can see, if a single condition is true, then we are getting True as the OR output that is row 3 to 5. If all condition is false, then only we are getting false as OR output that is row no 2.

Example 2

A User has a List of Student Score Card for Math and English, which he wants to evaluate for Pass and Fail, where he decides the minimum Score to Pass is 75 out of 100.

Let’s see how the ‘OR’ and ‘IF’ function can solve this problem to evaluate the Fail or Pass status of the student.

  • Open MS Excel, Go to Sheet where the user wants to evaluate Fail or Pass Status of the Student.

OR example 2-1

  • Create a header column with ‘OR Output With If’ in column E to execute the OR function.

OR example 2-2

  • Now apply the IF Function in the cell E2.

OR example 2-3

  • Add OR Function to check if in any subject student is scoring below 75.

OR example 2-4

  • Now it will ask for Logical1, which is Math Score needs to compare against Passing Score 75. So, just compare Math Score, which is available in the B column.

OR example 2-5

  • Now it will ask for Logical1, Logical2, … which is an English score which needs to be compared against passing score 75. So, just compare the English Score, which is available in Column C.

OR example 2-6

  • It will then ask the value if it is True, so if the student fails, his scores will be below 75 in any subject.

OR example 2-7

  • Now it will ask the value if it is False, and if the student is passed, his scores will be above or equal to 75 in all subjects.

OR example 2-8

  • Press the Enter Button, and the result will be shown below.

OR example 2-9

  • Now apply the same Formula to other Cells by just dragging the E2 formula till E9.

or formula in Excel 2

  • Now to apply AND Formula with OR, we will create one Header in the F column and check if any student has passed in Math or Science or English.

or example 2-10

  • Now apply AND & OR function to the G column.

OR in excel 2-12

  • After applying this formula, the result is shown below.

or example 2-11

  • Now apply the Same Formula to other Cells by just dragging the G2 formula till G4.

or example 3-6

Summary of Example 2:

As the user wants to execute the OR and IF function for different conditions, we have done in the above example.

As we can see, if a single condition is true, then we are getting FAIL as the OR output that is row no 6, 8, 9, and 10. If all condition is false, then only we are getting PASS as the OR output that is row no 3, 4, 5 and 7.

Example 3

A user has a list of Student Score Card for Science and English, which he wants to evaluate for FALSE and TRUE, where he decides the minimum pass score to pass is 33 out of 100.

Let’s see how the ‘XOR’ function can solve his problem to calculate.

  • Open the MS Excel, go to sheet3 where the user wants to execute his OR function.

or example 3-1

  • Create a header column with XOR Result in the E column where we will execute the XOR function.

or example 3-2

  • Now apply the XOR function in the cell E2.

or excel 3-6

  • Press on the Enter Button and see the result below.

or example 3-4

  • Now apply the Same Formula to other Cells by just dragging the E2 formula till E4.

or excel example 3.gif

Summary of Example 3: As the user wants to execute the XOR function for different conditions, we have done in the above example.

The XOR formula is Exclusive OR, where an odd number of conditions or True otherwise will always return False.

Things to Remember About OR Formula in Excel

  1. The OR function will return true if any single argument or condition is true; else, it will return false.
  2. A user can test up to 255 arguments in the OR function.
  3. If there is no logical value coming as an argument, then it will throw an error #VALUE.
  4. A user can use the OR function with other Logical functions also like AND, OR, XOR, etc.

Recommended Articles

This has been a guide to OR Formula in Excel. Here we discuss How to use OR Formula in Excel along with practical examples and a downloadable excel template. You can also go through our other suggested articles –

  1. OR Excel Function
  2. VBA OR
  3. Logical Functions in Excel
  4. Excel IF AND Function
Popular Course in this category
Excel Training (23 Courses, 9+ Projects)
  23 Online Courses |  9 Hands-on Projects |  110+ Hours |  Verifiable Certificate of Completion
4.9
Price

View Course

Related Courses

Excel Data Analysis Training (17 Courses, 8+ Projects)4.9
Excel for Finance Training (18 Courses, 7+ Projects)4.8
0 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Excel Charts
  • Excel Tips
  • All Tutorials
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

Download OR Formula Excel Template

EDUCBA

Download OR Formula Excel Template

EDUCBA

डाउनलोड OR Formula Excel Template

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more