MIN function

V

vanessa

I am having difficulty writing a formula to find the MIN of a list of
non-consecutive numbers that contains a lot of zeros. The formula keeps
returning zero.

How do I find the MIN greater than zero?
 
M

Mike H

Vanessa

Try this

=MIN(IF(D1:D20>0,D1:D20))

This is an array formula which must be entered with CTRL+Shift+Enter and NOT
just by pressing enter. If you do it correctly Excel will put cur;y brackets
{} around the formula. You can't type these yourself

Mike
 
V

vanessa

It doesn't seem to be working for me, but maybe this is because the cells I
want the MIN of are not consecutive. So this is what I typed in:

=MIN(IF(N6,T6,Z6,AF6,AL6,AR6,AX6,BD6>0, N6,T6,Z6,AF6,AL6,AR6,AX6,BD6)
 
M

Mike H

Vanessa,

I missed the discontiguous bit, Try this instead

=MIN(IF((MOD(COLUMN(N6:BD6),6)=2)*(N6:BD6>0),N6:BD6))

Still ARRAY entered with CTRL+Shift+Enter

Mike
 
V

vanessa

Perfect. Thank you!

Mike H said:
Vanessa,

I missed the discontiguous bit, Try this instead

=MIN(IF((MOD(COLUMN(N6:BD6),6)=2)*(N6:BD6>0),N6:BD6))

Still ARRAY entered with CTRL+Shift+Enter

Mike
 

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