23.08.2023 Views

CFI-Excel-eBook

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The Corporate Finance Institute Excel

OR

Test multiple conditions with OR

logical1 logical2 …

What is the OR Function?

The OR Function is categorized under LOGICAL functions. The function will

determine if any of the conditions in the test is TRUE.

In financial analysis, the OR function can be useful in comparing two

statements or two values. For example, A1 for either “a” or “b,” use

=OR(A1=”a”,A1=”b”). The OR function can be used as the logical test inside the

IF function to avoid extra nested IFs, and can be combined with the AND

function.

Formula

=OR(logical1, [logical2], …)

The OR Function uses following arguments:

1. Logical1 (required argument) – It is the first condition or logical value to

evaluate.

2. Logical2 (optional argument) – It is the second condition or logical value to

evaluate.

How to use the OR Function in Excel?

As a worksheet function, OR can be entered as part of a formula in a cell of a

worksheet. To understand the uses of the function, let us consider an example:

corporatefinanceinstitute.com

118

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!