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

Logical

AND

Test multiple conditions with AND

logical1

logical2

What is the AND Function?

The AND function is categorized under Logical functions. It is used to

determine if the given conditions in a test are TRUE. For example, we can use

the function to test if a number in cell B1 is greater than 100 and less than 50.

As a financial analyst, the function is useful in testing multiple conditions,

specifically, if multiple conditions are met to make sure they all are true. Also, it

helps us avoid extra nested IFS, and the AND can be combined with the OR

function.

Formula

=AND(logical1, [logical2], …)

The AND function uses the following arguments:

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

evaluated.

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

to be evaluated.

Notes:

1. We can set up to 255 conditions for the AND function.

2. The function tests a number of supplied conditions and returns:

1. TRUE if ALL of the conditions evaluate to TRUE; or

2. FALSE otherwise (i.e. if ANY of the conditions evaluate to FALSE).

How to use the AND Function in Excel?

To understand the uses of the AND function, let us consider a few examples:

corporatefinanceinstitute.com

94

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

Saved successfully!

Ooh no, something went wrong!