ExcelFunctions.net Logo

The Excel OR Function

Home » Excel-Built-In-Functions » Excel-Or-Function

Search this site:
Custom Search

Basic Description

The Excel OR function tests a number of user-defined conditions and returns a result of:

  • TRUE if ANY of the conditions evaluate to TRUE
OR
  • FALSE otherwise (i.e. if ALL of the conditions evaluate to FALSE).
The format of the OR function is:

OR(Logical_test1, Logical_test2, ...)

where Logical_test1, Logical_test2, ... are user-defined conditions


Examples

The following examples show the OR function applied to a number of different conditions. The format of the functions are shown in the spreadsheet on the left and the result is shown in the spreadsheet on the right.

  A B C
1 5 10 =OR( A1>0, A1<B1 )
2 5 10 =OR( A2>0, A2>B2, B2>12 )
3 5 10 =OR( A3<0, A3>B3, B3>12 )
  A B C
1 5 10 TRUE
2 5 10 TRUE
3 5 10 FALSE

In the examples above,
  • the function in cell C1 evaluates to TRUE, as BOTH of the supplied conditions are TRUE

  • the function in cell C2 evaluates to TRUE, as the first condition, A2>0, is TRUE

  • the function in cell C3 evaluates to FALSE, as ALL of the supplied conditions are FALSE







Related Functions:


Disclaimer Privacy Policy

Copyright © 2008-2010 ExcelFunctions.net