Min Value

E

EricBB

hello there,
xxx 0
yyy 45
yyy 70
xxx 5
xxx 0

70 -->>=SUMPRODUCT(MAX((A2:A6=A3)*(B2:B6)))
the above formula is the MAX for yyy, how can i edit the above formula to
get the MIN value from the list but not zero if column A is yyy. im expecting
an answer of 45
 
M

Mike H

Try,

=MIN(IF(A2:A6=A3,IF(B2:B6>0,B2:B6)))

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

Mike
 
T

T. Valko

If the min value for yyy is 0 do you want to exclude that value?

A non-array formula will be rather convoluted!
 
T

T. Valko

Also, what if all the associated values with yyy are 0 (if that's even
possible?)?
 

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