MIN greater than zero

bbond

New Member
Joined
Sep 3, 2011
Messages
7
I need to find the lowest number in a row but want to ignore any cell with a zero in it for the MIN calculation. In other words 4, 2, 11, 0, 5, 0 in a row would return 2 for this answer.

I've been unable to find anything in the forum, but find it hard to believe that this hasn't come up before. If this has been answered before, just point me to the proper post.

Thanks much!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Welcome to the board...


Try
=SMALL(A1:F1,1+COUNTIF(A1:F1,0))


Hope that helps.
 
Upvote 0
Hello & Welcome to the Board,

Could you use...

=MIN(IF(A1:F1>0,A1:F1))

This formula requires Ctrl + Shift + Enter
 
Upvote 0
I need to find the lowest number in a row but want to ignore any cell with a zero in it for the MIN calculation. In other words 4, 2, 11, 0, 5, 0 in a row would return 2 for this answer.

I've been unable to find anything in the forum, but find it hard to believe that this hasn't come up before. If this has been answered before, just point me to the proper post.

Thanks much!
Another option...

=SMALL(A1:F1,INDEX(FREQUENCY(A1:F1,0),2)+1)
 
Upvote 0
JeffryBrown, what do you mean "requires 'Ctrl + shift + Enter'". I'm not advanced enough to know what a lot of the shortcuts you guys are using really mean.

Thanks
 
Upvote 0

Forum statistics

Threads
1,224,596
Messages
6,179,807
Members
452,944
Latest member
2558216095

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