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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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