+ Reply to Thread
Results 1 to 4 of 4

Minimum of Values that aren't zero

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    839

    Minimum of Values that aren't zero

    Hi,

    I would like to create a formula to return the minimum of a range of values, but not to consider zero. For example, if the values were 0, 1, 2 and 3, the MIN formula would return 1.

    What formula would achieve this?

    Thanks!

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208

    Re: Minimum of Values that aren't zero

    Try:

    =MIN(IF(A1:A10>0,A1:A10))

    This is an array formula, so after entering it, you need to confirm with CTRL + SHIFT + ENTER.

    HTH,
    Jason

  3. #3
    Forum Contributor vandanavai's Avatar
    Join Date
    09-04-2006
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    256

    Re: Minimum of Values that aren't zero

    Hello

    Try following formula, Assuming numbers are in range A1:A100

    =SMALL(A1:A100,COUNTIF($A$1:$A$100,0)+1)

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Minimum of Values that aren't zero

    Try:

    =SMALL(A1:A4,COUNTIF(A1:A4,0)+1)

    where A1:A4 contain your numbers.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1