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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
Hi

You can use an array formula to do this:

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

Confirmed with Ctrl+Shift+Enter
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
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)
 

woodpecker2

New Member
Joined
Aug 2, 2007
Messages
33

ADVERTISEMENT

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
 

Expiry

Well-known Member
Joined
Jun 20, 2007
Messages
865
Repeat the above array formula for each range, then do a =min on all of your results.
 

woodpecker2

New Member
Joined
Aug 2, 2007
Messages
33

ADVERTISEMENT

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)))
 

mortgageman

Well-known Member
Joined
Jun 30, 2005
Messages
2,015
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.
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
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)))
 
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,163,508
Messages
5,832,154
Members
430,113
Latest member
CoeurDeLion

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