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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

BuddieB

Board Regular
Joined
Aug 6, 2003
Messages
174
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.
 

just_jon

Legend
Joined
Sep 3, 2002
Messages
10,473
Not the best--

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

Array-entered w/ Control+Shift+Enter
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210

ADVERTISEMENT

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.
 

BuddieB

Board Regular
Joined
Aug 6, 2003
Messages
174
I knew Aladin would come up with a much more concise formula.

Nice work as always Aladin. (y)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,091
Messages
5,857,310
Members
431,870
Latest member
Muratculous

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
Top