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:
 

Some videos you may like

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

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,201

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)
 

Watch MrExcel Video

Forum statistics

Threads
1,122,721
Messages
5,597,758
Members
414,171
Latest member
12Rev79

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