IFS
Excel IFS Function
One predefined Excel function that produces data based on one or more true or false conditions is called the IFS function.
It has two or more pieces and is typed =IFS.
=IFS(logical_test1, value_if_true1, [logical_test2, value_if_true2], [logical_test3; ...)
The conditions are referred to as logical_test1, logical_test2, …Â which can check things like:
- If a number is greater than another number >
- If a number is smaller than another number <
- If a number or text is equal to something =
Note: You have control over the condition as well as the return values.
Note: A symbol, such as a , or ; is used to separate the various components of the function;
The symbol is determined by your language preferences.
Example IFS function
Create categories based on the Pokemon’s speed:
Here are the terms and values of the return:
- Speed more than 90: “Fast”
- Speed more than 50: “Normal”
- Speed less than or equal to 50: “Slow”
Example IFS function, step by step:
- Select the cell D2
- Type =IFS
- Double click the IFS command
4. pecify the first condition C2>90
5. Type ,
6. Specify the value “Fast” for when the first condition is TRUE
7. Type ,
8. Specify the second condition C2>50
9. Type ,
10. Specify the value “Normal” for when the second condition is TRUE
11. Type ,
12. Specify the third condition C2<=50
13. Type ,
14. Specify the value “Slow” for when the third condition is TRUE
15. Hit enter
Since “45” is the value in cell C2, the function will return “Slow” since the third criteria (less than or equal to 50) is true and the first two conditions are false.
It is necessary to enclose text values in quotes: ” “
To carry out the same check for every Pokemon, the function can be repeated using the filling function for every row:
It should be noted that 50 is included in “less than or equal to 50″ because the third condition <=50 includes =.
Each Pokemon now has a category for speed: