Minimum Number

woodpecker2

New Member
Is it possible to use the MIN function to exclude zero's?

If I use =MIN(A1:A100) and there is a zero then the result shows zero.

Any help would be appreciated.

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi

You can use an array formula to do this:

=MIN(IF(A1:A100,A1:A100))

Confirmed with Ctrl+Shift+Enter

Thankyou, that's solved my problem.

Is it possible to use the MIN function to exclude zero's?

If I use =MIN(A1:A100) and there is a zero then the result shows zero.

Any help would be appreciated.

For a range housing values >=0, also:

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

I need further help with this problem.

I've discovered that I need to find the minimum value greater than zero but within different ranges. Example I may need the minimum for ranges A1:E5 and H1:L5 and N1:R5

Despite having done a search on the topic I'm unable to find exactly what I need.

Could someone help further.

Thanks

Repeat the above array formula for each range, then do a =min on all of your results.

Cracked it, I was forgetting the Ctrl, Shift and Enter to form the array.

=MIN((IF(A1:A369>0,A1:A369)),(IF(C1:C369>0,C1:C369)),(IF(E1:E369>0,E1:E369)))

I need further help with this problem.

I've discovered that I need to find the minimum value greater than zero but within different ranges. Example I may need the minimum for ranges A1:E5 and H1:L5 and N1:R5

Despite having done a search on the topic I'm unable to find exactly what I need.

Could someone help further.

Thanks

I see that you have "cracked it", but it you want, you could also define a non contiguous range and then continue to use either Richard's or Alladin's formula.

Cracked it, I was forgetting the Ctrl, Shift and Enter to form the array.

=MIN((IF(A1:A369>0,A1:A369)),(IF(C1:C369>0,C1:C369)),(IF(E1:E369>0,E1:E369)))

Also...

Control+shift+enter:

=MIN(IF(CHOOSE({1,2,3},A1:A369,C1:C369,E1:E369)>0,CHOOSE({1,2,3},A1:A369,C1:C369,E1:E369)))

Replies
2
Views
147
Replies
7
Views
254
Replies
2
Views
224
Replies
0
Views
248
Replies
3
Views
897

1,214,319
Messages
6,118,880
Members
448,855
Latest member
joshpep96

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.

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

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