In this article, we will learn how to use OR function in Excel.
OR function in Excel runs a basic logical function to test two values or statements. OR function checks if any of the condition in formula is True, returns True and it returns False only if all condition or statements are False.
OR function can be used via many ways.
Let’s understand them one by one
Here we have some coloured balls and we need to test the condition to check whether the ball is valid or not.
Use the formula in B2 cell.
Function checks either Red ball or White ball is valid for the match to be played.
So it checks the cell A2 for the same.
As it returns False means it doesn’t have either Red or White.
Use the Ctrl + D option to check the cells corresponding to it.
As we can see in the above snapshot it returns True for the cells having Red or White coloured ball.
You can apply it to check on the range of cells to test whether any of the cell returns True or not.
Use the formula
Note: Don’t forget to use Ctrl + shift + Enter to get the result. Curly brackets will be visible in the function box (fx) of the cell.
Use Ctrl + Shift + Enter to see the result
It returns True. It means that A2:A10 range cells have either White or Red ball.
You can check less than or greater than condition on numbers. OR function can also be used along with many function like IF, AND and many more.
Hope you understood how to use OR function in Excel. Explore more articles on logic_test functions here. Feel free to state your queries in the comment box below.
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.