Minimum Number

woodpecker2

New Member
Joined
Aug 2, 2007
Messages
33
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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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)
 
Upvote 0
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
 
Upvote 0
Repeat the above array formula for each range, then do a =min on all of your results.
 
Upvote 0
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)))
 
Upvote 0
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.
 
Upvote 0
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)))
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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