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.
 

Some videos you may like

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

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

Watch MrExcel Video

Forum statistics

Threads
1,122,575
Messages
5,596,950
Members
414,114
Latest member
Lost_User21

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