minimum value without zero

S

steve

If I have 4 cells, and I want the minimum value greater
than zero of the 4 cells, how do I write this?

Example
A2=3
B2=8
C2=0
D2=9

I want the formula (in cell E2) to return the value 3. If
I use MIN it returns 0. However, the list may have
multiple zero's.

Is there a way to put a constraint so it will return the
lowest value greater than zero?
 
S

steve

Thanks Jason
-----Original Message-----
A non-array way (assuming no neg. numbers in range):

=SMALL(A2:D2,COUNTIF(A2:D2,0)+1)

With negative numbers:

=SMALL(A2:D2,COUNTIF(A2:D2,"<=0")+1)

HTH
Jason
Atlanta, GA


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top