conditional MIN

wwbwb

Well-known Member
Joined
Oct 20, 2003
Messages
513
How can I find the lowest number, not equal to 0, in a column. I have a column, I9:I60. I need to find the smallest number, but not any zeros. :unsure:
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Try this:

Code:
=SMALL(A11:A18,COUNT(A11:A18)-COUNTIF(A11:A18,">0")+1)

edit: sorry about that last one if you used it. try this.
 
Upvote 0
wwbwb said:
How can I find the lowest number, not equal to 0, in a column. I have a column, I9:I60. I need to find the smallest number, but not any zeros. :unsure:

If I9:I60 is not supposed to house any neg values, then either:

=MIN(IF(I9:I60>0,I9:i60))

which must be confirmed with control+shift+enter instead of just enter.

or:

=SMALL(I9:I60,COUNTIF(I9:I60,0)+1)

Otherwise:

=MIN(IF((I9:I60<>0),I9:i60))

which is also to be confirmed with control+shift+enter.
 
Upvote 0
I knew Aladin would come up with a much more concise formula.

Nice work as always Aladin. (y)
 
Upvote 0

Forum statistics

Threads
1,214,806
Messages
6,121,667
Members
449,045
Latest member
Marcus05

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top