Then, if the outcome of the logical test of the inner IF function is “True,” we tell the function to return 1. If the value is less than or equal to 10, the inner IF function will get “True” and otherwise “False”. We are evaluating whether the experience is less than or equal to 10 years by using the inner IF function. If the logical test returns “False,” we specify to get “0.” If the outcome of the logical test is “True,” we then provide the function to assess another IF function. It will be “True” if the value is more than or equal to 5, and “False” otherwise. So, the first IF function is used to test whether the experience is greater than or equal to five years. You can use the below function to find the number of employees with 5 to 10 years of experience. In this case, the SUM function will help to get the total value of the corresponding multiplied results of the two IF functions. Otherwise, we will get 0.įinally, we use the SUM function to get the total value of the multiplied results. This gives an array of numbers where it would be 1 if both corresponding values in both the IF function are 1. Next, we multiply the corresponding results of two IF functions using the asterisk (*) sign. If the logical test returns “False,” we say that we want to receive “0.” So, if the outcome of the logical test is “True,” we tell the function to return 1. The result will be “True” if the value is less than or equal to 10, and “False” otherwise. We are checking the experience of less than or equal to 10 years with the second IF function. If the logical test returns “False,” we specify that we want to receive “0.” Then, if the logical test result is “True,” we say the function to return 1. The value will receive “True” if the experience value is more than or equal to 5, and “False” otherwise. Therefore, we are evaluating experience greater than or equal to 5 years with the first IF function. The syntax of the IF function is IF(logical_test.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |