How to get the second lowest value excluding zero and ignoring the duplicates in excel
Solution 1:
Here is a solution using support cells, this way it's easier to see the logic, however you can of course combine everything into one formula.
-
=COUNTIF(A1:A7,0)
- count number of cells containing0
-
=COUNTIF(A1:A7,SMALL(A1:A7,D1+1))
- count the number of cells containing the smallest value (excluding0
) -
=SMALL(A1:A7,D1+D2+1)
- the second smallest value
The big formula would look like this:=SMALL(A1:A7,COUNTIF(A1:A7,0)+COUNTIF(A1:A7,SMALL(A1:A7,COUNTIF(A1:A7,0)+1))+1)