Go Back

How to Use Excel OR Function

We can use Excel OR function to simultaneously test multiple logical conditions. For each argument, the OR function will give TRUE or FALSE. This article will step through the use of the OR function.

Figure 1: Final result

Syntax of the formula

=OR(logical1, [logical2]….)

The parameters

Logical1- refers to first condition or logical value to evaluate

Logical2- refers to second condition or logical value to evaluate. It is optional.

Explanation

We will get either of two results: If the argument is true and the condition met, the OR function will return TRUE. However, on the other hand, if the condition is not met, then the OR function will return FALSE.

This function can be used to test multiple conditions, up to 255 at a time.

Using OR to extend functionality of IF function

We can also use the OR function to extend the functionality of the IF function. To better understand this, consider the example below:

Figure 2: Extending functionality of IF function

Array form of the OR function

One can test all values in a given range against one condition by using the array form of the OR function. The test will return either TRUE if any cell in the given range certifies the condition given.

e.g.

={OR(B2:BC20>100}

Notes

The OR function will ignore any empty cell or cells with text values.

Again, if the range selected does not contain any logical values, the OR function will return #Value.

Instant Connection to an Expert through our Excelchat Service

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

Did this post not answer your question? Get a solution from connecting with the expert.

Another blog reader asked this question today on Excelchat:
Here are some problems that our users have asked and received explanations on

Can you help me? I think that I have a MATCH or INDEX or ADDRESS or ROW or COLUMN question.
Solved by D. U. in 23 mins
I need a way to restrict the data entry in cell 'B5' to S or D or s or d
Solved by T. B. in 30 mins
I need help with this formula-for 1 cell if cell c13 = 1 and (if(e13 =1 or f13=1 or g13=1 or h13=1 or I13 =1) =1))then value = $d$6 *$D$9 or if cell d13 = 1 and ( if(e13 =1 or f13=1 or g13=1 or h13=1 or I13 =1) =1)) then value = $d$5 *$D$9 or If cell (c13 = 1 and if J13 =1) then value = $E$6 *$D$9 or If cell (d13 = 1 and if j13 =1) then value = $F$6 *$D$9 If cell (c13 = 1 and if k13 =1) then value = $E$5 *$D$9 or If cell (d13 = 1 and if k13 =1) then value = $F$5 *$D$9
Solved by I. W. in 18 mins

Leave a Comment

avatar