Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • Left Lookup in Excel
  • Count unique text values with criteria
  • Two-column Lookup in Excel
  • LOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • To count total rows in a range in Excel

Data Analysis Examples

  • How to calculate correlation coefficient Correlation in Excel
  • Data Series in Excel
  • Working With Tables in Excel
  • How to create dynamic reference table name in Excel
  • Chart Axes in Excel

Data Validation Examples

  • Excel Data validation exists in list
  • Excel Data validation whole percentage only
  • Excel Data validation date in specific year
  • Excel Data validation must begin with
  • Excel Data validation no punctuation

OR function: Description, Usage, Syntax, Examples and Explanation

by

What is OR function in Excel?

OR function is one of the Logical functions in Microsoft Excel that determines if any conditions in a test are TRUE.

Illustration of OR function

Example
Here are some general examples of using OR by itself, and in conjunction with IF.

Worked Example:   Highlight row and column intersection exact match in Excel

Formula Description
=OR(A2>1,A2<100) Displays TRUE if A2 is greater than 1 OR less than 100, otherwise it displays FALSE.
=IF(OR(A2>1,A2<100),A3,”The value is out of range”) Displays the value in cell A3 if it is greater than 1 OR less than 100, otherwise it displays the message “The value is out of range”.
=IF(OR(A2<0,A2>50),A2,”The value is out of range”) Displays the value in cell A2 if it’s less than 0 OR greater than 50, otherwise it displays a message.
Worked Example:   OR function Examples in Excel

 

Worked Example:   Highlight values not between X and Y in Excel

Post navigation

Previous Post:

IFNA function: Description, Usage, Syntax, Examples and Explanation

Next Post:

SWITCH function: Description, Usage, Syntax, Examples and Explanation

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others
  • DBCS function: Description, Usage, Syntax, Examples and Explanation
  • How to extract text between parentheses in Excel
  • Split dimensions into two parts in Excel Worksheet
  • How to extract nth word from text string in excel
  • How to count specific words in a cell in Excel
  • Calculate total hours that fall between two times in Excel
  • Count birthdays by month in Excel
  • How to calculate next scheduled event in Excel
  • Convert Excel time to decimal minutes
  • Add days exclude certain days of week in Excel
  • SYD function: Description, Usage, Syntax, Examples and Explanation
  • PPMT function: Description, Usage, Syntax, Examples and Explanation
  • Calculate periods for annuity in Excel
  • ACCRINT function: Description, Usage, Syntax, Examples and Explanation
  • DOLLARDE function: Description, Usage, Syntax, Examples and Explanation
Acronyms, Abbreviations, Initialism & What They Stand For
© 2022 xlsoffice . All Right Reserved. | Teal Smiles