Min If greater than zero

dsmith1088

New Member
Joined
Aug 31, 2017
Messages
11
Hi all

I have a number of scattered cells which are NOT in a list or a table e.g. A1, C5, E10, F69.

i need to select the lowest value greater than zero without using a long-winded nested if formula. Any ideas? I know this is very straightforward if the cells are in a list or a table because I'll have a straight forward range to work with (e.g. A1:A10), but unfortunately there is no way to edit the spreadsheet in this manner.

Many thanks
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
A1=4 B3=5 C5=6

highlight all 3 cells with control + select

insert name, define, myrange

=sum(myrange)=15
 
Upvote 0
then use small function to list all cells in a helper column and select the first one above zero - helper can be hidden if desired.
 
Upvote 0
Another option

Ctrl+Shift+Enter

=SMALL((A1,H6:H8,J9,M4:M8,I1),1+FREQUENCY((A1,H6:H8,J9,M4:M8,I1),0))


Credit to pgc01
 
Last edited:
Upvote 0
Thanks for the quick response. I've got the myrange working but not too sure what you mean about the "small function" and "helper column". What I really need is a formula that will return the minimum value greater than zero - i then need to incorporate this formula into a larger formula.

For example: if(MinZeroFormula>R10,"Ok","Cancel")
 
Upvote 0
a1=9
b1=4
c1=22

=small(A1:C1,2) returns the second smallest eg 9

a helper column is somewhere you place intermediate workings, and can be located out of sight - excel does have a few spare columns....
 
Upvote 0

Forum statistics

Threads
1,223,956
Messages
6,175,613
Members
452,661
Latest member
Nonhle

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