Excel OR Function
This tutorial explains how to use the Excel OR function.
The OR function is a logical function that you can use to determine if any of the conditions in a test are TRUE.
Use the Excel AND function if you want to determine if all of the conditions are TRUE.
=OR(logical1, [logical2], …)
- logical1: The first logical value to evaluate.
- logical2: [Optional].The additional logical value to evaluate.
Example: =OR(1=1, 2=4, 3=5, 2=2)
You can specify up to 255 additional arguments.
Here is our sample data.
In Example 1 above, OR outputs TRUE if A1 is less than or equal to 120 or B1 is greater than 200, otherwise it outputs FALSE. The result if TRUE.
In Example 2 above, OR outputs TRUE if A2 is less than 100 or A2 is greater than 205, otherwise, FALSE. The result is FALSE.
In Example 3 above, OR outputs TRUE if A3 is greater than 110 or B2 is greater than 300 otherwise FALSE. The result is FALSE.
In this tutorial, you learned how to use the Excel OR function. We use Excel OR function to determine if any conditions in a test are TRUE.
Here is a full list of Microsoft Excel functions.