Forum Discussion

Mohammed A Elrify's avatar
Mohammed A Elrify
Brass Contributor
Sep 28, 2016

Find the smallest value other than zero

Sometimes my question is the search for the smallest value, except for zero

The function min or small

But fail to it because it will come in short, a smallest value of zero

And we are forced to do the work of an array formula, such as in the picture

And the following suggestion

Argument optional functions

max min av

small large

To neglected zero.

It will be a very, very useful

Greetings to you

 

 

8 Replies

  • Dean Robinson's avatar
    Dean Robinson
    Copper Contributor

    I would usualy be lazy and add a new column with the formula =IF(A2=0,"",A2) then do a Min of that Column.

     

  • Mehdi HAMMADI's avatar
    Mehdi HAMMADI
    Brass Contributor

    I generaly use a array formula for that like this one

    =MIN(IF(A2:A10>0;A2:A10))

    • Mohammed A Elrify's avatar
      Mohammed A Elrify
      Brass Contributor

      Very cool,

      but this function does not specifically appear, but only with OFFICE 365

      • JoeMcDaid's avatar
        JoeMcDaid
        Icon for Microsoft rankMicrosoft

        A slightly easier variation of Mohammed's formula for users without MINIFS. Like Mohammed's formula, this one also needs to be array entered.

         

        =MIN(IF(A2:A10*1=0,"",A2:A10))

         

Resources