Minimum greater than 0

Mel Smith

Well-known Member
Joined
Dec 13, 2005
Messages
1,023
Office Version
  1. 365
Platform
  1. Windows
I am using the following to find the minimum value in a range: =MIN(AM4:AM63)
How can I amend this to give me the minimum value which is greater than 0? In other words, to exclude all zero values to find the positive value minimum.

Many thanks.

Mel
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Perhaps
Excel Formula:
=MINIFS(AM4:AM63,AM4:AM63,">0")
 
Upvote 0
Solution
Book1.xlsx
ABCD
1NumberMINIFCSE
2011
31
42
53
MZ
Cell Formulas
RangeFormula
C2C2=MINIFS(A2:A5,A2:A5,">0")
D2D2=MIN(IF(A2:A5>0,A2:A5))
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 
Upvote 0
Jasonb75 gave me the ideal solution. Thanks lrobbo314
 
Upvote 0
How abt?

EMT1303-1306.xlsx
TUV
6DataOutput
75016
8312
90
10138
1127
12186
1320
14125
15158
160
17138
18219
19331
2016
2120
22244
23291
24296
1303
Cell Formulas
RangeFormula
V7V7=SMALL(IF(T7:T24>0,T7:T24),1)
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Thanks, Rahul. Jasonb75 gave me a solution that I’m working with but it’s nice to have an alternative as backup.
Mel
 
Upvote 0
@Rahul1987
Excel Formula:
=AGGREGATE(15,6,T7:T24/(T7:T24>0),1)
While some people do still use them, SMALL and LARGE are only really needed for compatibility with excel 2007 or older.
Using AGGREGATE without IF also removes the need to use Ctrl Shift Enter.
 
Upvote 0

Forum statistics

Threads
1,214,592
Messages
6,120,433
Members
448,961
Latest member
nzskater

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