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

IFS

Test multiple conditions, return first true

test1 value2 test2

value2

What is the IFS Function?

The IFS Function in Excel is a Logical function that was introduced in Excel

2016. The function is an alternative to the Nested IF function and is much

easier to use. The IFS function checks if one or more than one conditions are

observed or not and accordingly returns a value that meets the first TRUE

condition.

Formula

= IFS(logical_test1, Value1 [logical_test2, Value2] …, [logical_test127, Value127])

Where:

1. Logical_test1 – First logical test. It is a required argument and is the

condition that is used by Excel to evaluate whether it is TRUE or FALSE.

2. Value1 – Result when logical_test1 is true. If required, we can keep it

empty.

The rest of the logical_test and Value arguments are optional; the function

allows the user to put 127 logical_test arguments using the IFS function.

How to use the IFS Function in Excel?

It is a built-in function which can be used as a worksheet function in Excel. Let’s

take an example:

Let’s assume we wish to assign grades to marks earned by students. We can

use the IFS Function in the following manner:

corporatefinanceinstitute.com

112

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

Saved successfully!

Ooh no, something went wrong!