What is the use of Excel OR Function?
By using Excel OR Function you can check multiple conditions. It will return true if any of those conditions is true, else it will return false. In simple words, if a single condition is true from all those conditions which you are testing it will return TRUE. That means at least one condition needs to be TRUE to get TRUE in result.
In above example, I have used or function to check multiple conditions. The formula has returned TRUE even a single condition is TRUE & FALSE if all the conditions are FALSE.
Syntax For Excel OR Function
OR(logical1, [logical2], …)
logical1 Condition which you want to verify. [Required]
[logical2] Additional Conditions you want to verify [Optional]
More Information To Use OR Function
- Values will be ignored if reference cell or array contained an empty cell or text.
- The result of conditions should be in logical value (TRUE or FALSE).
- It will return an error if there is no logical value is returned.
- The maximum numbers of values you can test are 255.
Examples To Understand Excel OR Function
In above example, I have created a condition using IF Function that if a student score 60 above marks in one of the both subjects the formula returns TRUE.
You can also use OR Function to work with numbers as well. As you know TRUE & FALSE has values 0 & 1 respectively.
In above example, I have used a number to get logical values in a formula.
You can also perform above condition in reverse order. You can use TRUE & FALSE instead of numbers. OR Function treats these logical values as numbers.
Download Sample File
You can use Excel OR Function to verify more than one condition at the same time, where you want at least a single condition to be TRUE. Using OR with other functions can help you to create some conditional functions as well. Learn more about OR from here.