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 1 – Using IFS with ELSE

Let’s assume we have a list of items and we need to classify them under three

common headings: Vegetable, Fruit, Green Vegetable and Beverage. When we

use the IFS function and give the formula

=IFS(A2=”Apple”,”Fruit”,A2=”Banana”,”Fruit”,A2=”Spinach”,”Green

Vegetable”,A2=”coffee”,”Beverage”,A2=”cabbage”,”Green

Vegetable”,A2=”capsicum”,”Vegetable”)

Then, we will get the following result:

In this example, we have entered multiple logical tests in the IFS function.

When a logical test evaluates to TRUE, the corresponding value will be

returned. However, if none of the logical tests evaluate to TRUE, then IFS

function would give #N/A error. This is what we got for Pepper in B8.

corporatefinanceinstitute.com

114

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

Saved successfully!

Ooh no, something went wrong!