Lowest number above 0

G

Guest

If I have a list of numbers in colum "A".

A1: 10
A2: 20
A3: 00
A4: 15
A5: 50
A6: 25
I can get my answer by using this formula
=SMALL(A1:A5,COUNTIF(A1:A5,0)+1)

However, if I want the smallest number between certain cells like A1, A3, A4
which would give me an answer of 10, is that posible??

Thanks in advance
 
G

Guest

There is a trick to using SMALL with disjoint ranges.

Define a Named Range, say "sampl", of A1, A3, A4.
If there is at most one zero in the range, then:

=IF(SMALL(sampl,1)=0,SMALL(sampl,2),SMALL(sampl,1))

will return the minimum not including that zero.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top