excel - Conditional Min/Max -
using excel 2010, how calculate min or max column a, when needs take value of column b consideration?
so table looks this
amt spent quintile 545,40 q1 2146,41 q1 753,66 q2 821,11 q2 2157,99 q3 718,06 q3 526,58 q4 1047,50 q4 2009,30 q5 824,99 q5
to maximum quintile "q1"
:
=aggregate(14, 6, a:a*(b:b="q1"), 1)
to minimum quintile "q1"
:
=aggregate(15, 6, a:a/(b:b="q1"), 1)
you can place cell reference in place of hard-coded constant "q1"
. i.e.
=aggregate(14, 6, a:a *(b:b=b2), 1)
Comments
Post a Comment