Excel: IFS Function
About the video
IFS
This function in Excel can run multiple tests and return a value corresponding to the first TRUE result. Use the IFS function to evaluate multiple conditions without multiple nested IF statements. IFS allows shorter, easier to read formulas. Conditions are provided to the IFS function as test/value pairs, and IFS can handle up to 127 conditions. Each test represents a logical test that returns TRUE or FALSE, and the value that follows will be returned when the test returns TRUE. In the event that more than one condition returns TRUE, the value corresponding to the first TRUE result is returned. For this reason, it is important to consider the order in which conditions appear. The IFS function does not have a built-in default value to use when all conditions are FALSE.
The IFS function does not have a built-in default value to use when all conditions are FALSE. To provide a default value, enter TRUE as a final test, and a value to return when no other conditions are met. All logical tests must return TRUE or FALSE. Any other result will cause IFS to return a #VALUE! error. If no logical tests return TRUE, IFS will return the #N/A error.
Arguments of IFS Function:
- test1 - First logical test.
- value1 - Result when test1 is TRUE.
- test2, value2 - [optional] Second test/value pair.