In excel, we can use the IFS function to evaluate multiple conditions without having to use nested if conditions. This function can run multiple tests and return a value which corresponds to the first TRUE result. This article looks at how we can use the excel IFS function to run these tests.
Figure 1: Using Excel IFS function to test multiple conditions
General syntax of the formula
=IFS (test1, value1, [test2, value2], [test3, value3],….)
Where;
- test1- is the first logical test
- value1- refers to the result when test1 is TRUE
- test2- refers to second logical test
- value2- refers to the result when test2 is true
Understanding the formula
We use the Excel IFS function when we want to test multiple conditions without nesting. This function return the value which corresponds to the first TRUE result.
- For you to efficiently use the formula, you will have to enter the arguments in a test/value pair.
- Note that each of the test represent a logical test which returns TRUE or FALSE.
- Also, note that each of the values is associated with the previous test.
- IFS function will only return a value if its test returns TRUE.
- The IFS function can only support a maximum of 127 tests.
Notice that if none of the logical tests supplied fails to return TRUE, then the function will return #N/A error.
Instant Connection to an Expert through our Excelchat Service
Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.
Leave a Comment