Min value excluding 0 and another criteria

C

calebmichaud

Hi

I am trying to exclude zero plus add another criteria in calculating
the min value of a column. I want the other criteria to be the text
value of a different column. For instance column A has dog, cat,
fish, etc (up to 16 category types) and column B has age. I am trying
to find min age for each category and not include zero.

I know this will find the min age of everything
=MIN(IF($G$5:$G$40>0, $G$5:$G$40))

but i am at a lost for how to incoporate the other criteria

any suggestions would greatly be appreciated
 
K

Ken Johnson

Hi

I am trying to exclude zero plus add another criteria in calculating
the min value of a column.  I want the other criteria to be the text
value of a different column.  For instance column A has dog, cat,
fish, etc (up to 16 category types) and column B has age.  I am trying
to find min age for each category and not include zero.

I know this will find the min age of everything
=MIN(IF($G$5:$G$40>0, $G$5:$G$40))

but i am at a lost for how to incoporate the other criteria

any suggestions would greatly be appreciated

Maybe...

=MIN(IF(($G$5:$G$40>0)*($A$5:$A$40="dog"), $G$5:$G$40))
for minimum of dog ages

entered as an array formula.

Ken Johnson
 
C

calebmichaud

thats returning a zero.
here is what i am using...exchanging dog for a cell regerence

=MIN(IF(($G$5:$G$40>0)*($E$5:$E$40=E5), $G$5:$G$40))
 
C

calebmichaud

ken

disregard my last posting. didnt see the line that says to enter as
an array. works great now....thanks!!!!
 
C

calebmichaud

disregard last posting. didnt see the enter as array line. works
great. thanks a bunch!!!
 

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