Minimum Calculation

K

Ken

I have a column of numbers, including zeros. I want to find the minimum
number, but not zero. Is there an Excel calculation?

KEN
 
B

BoniM

Here's one way:
=SMALL(A1:A20,COUNTIF(A1:A20,0)+1)
counts the number of zero's and gives you the next smallest number that
isn't zero. This assumes values in column A, thru row 20, adjust as
necessary.
 
T

T. Valko

If there are no negative numbers:

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

This one will work with negatives:

Array entered using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

=MIN(IF(A1:A20<>0,A1:A20))

Biff
 
B

BoniM

I kinda figured that was a safe assumption, if MIN was giving him the zero,
but you're right, I should have said so.
 
Top