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

Example 2

Let’s see how we can use the AND function to test if a numeric value falls

between two specific numbers. For this, we can use the AND function with two

logical tests.

Suppose we are given the data below:

The formula to use is:

In the above formula, the value is compared to the smaller of the two

numbers, determined by the MIN function. In the second expression, the value

is compared to the larger of the two numbers, determined by the MAX

function. The AND function will return TRUE only when the value is greater

than the smaller number and less than the larger number.

We get the results below:

corporatefinanceinstitute.com

97

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

Saved successfully!

Ooh no, something went wrong!