Double-click the cell C8, copy the formula =SMALL(C2:C7,3), paste it in C8, press Enter, return to the 3rd minimum 2 double-click C8, change 3 to 4, press Enter, return to the 4th minimum 3.99 double-click C8 again, change 4 to 5, press Enter, return to the 5th minimum 3.99 the operation steps, as shown in Figure 1:Ī. (I) Example with duplicate values in Arrayġ. If argument Array is empty and k is less than or equal to 0 or k is greater than the number of values in the Array, Small function returns the numeric error value #NUM!.
Let's first study the basic usage of the Small function, and then study the extended application combined with each function. It has only two arguments, one is Array and the other is k, k cannot be less than or equal to 0 and cannot be greater than the total number of array elements, otherwise an error is returned.Įxcel Small functions is often combined with Index, IF, Match, and Row functions to achieve one-to-many lookups on the one hand and filter duplicate values on the other hand. If a student is failed in any of the subjects he/she will fail.The Excel Small function is used to return a specified value in an array or a reference cell sorted from small to large, such as the first minimum, the second minimum, and so on. But, if both cells a has a value lower than 40 then AND will return false and IF will return value “Fail”. That means if a student is passed in both of the subjects then he/she will pass. In the above formula, if there is a value 40 or greater than in any of the cells (B2 & C2) AND function will return true, and IF will return value “Pass”. If a student is passed in both of the subjects with 40 marks or above, the status should be “Pass”Īnd, if a student has less than 40 marks in both of the subjects or even in one subject, the status should be “Fail”. And, I want to add some remarks in the sheet. And, if any of the conditions is false then AND function will return false and IF function will return the value which you have specified for false. If all the conditions are true then AND function will return true and IF function will return the value which you have specified for true. Now, AND function will test your all conditions here. By using AND function you can specify more than one condition. To combine IF and AND functions you have to just replace logical_test argument in IF function with AND function.
IF Function – To test a condition and return a specific value if that condition is true or another specific value if that condition is false.In this post, you will learn to combine IF & AND functions and you will also learn why we need to combine both of these.īoth of these function are useful but by using them jointly, you can solve some real-life problems. There is a slight difference in using OR & AND function with IF. In the same way, you can combine IF and AND functions. Like you combine IF and OR functions to test multiple conditions. AND function is one of the most useful functions to combine with IF function. As I told you, by combining IF with other functions you can increase its powers.