1
In column A are various products (A2:A100), in column B are different numbers (B2:B100).
In cell G2 is criteria from column A.
With the formula {=MAX(IF($A$2:$A$100=G2;$B$2:$B$100))}
, I can find the highest value for a specific product in a sales list with multiple products.
Or I can use the sumproduct formula =SUMPRODUCT(MAX(($A$2:$A$100=G2)*($B$2:$B$100)))
.
But how can I find the cell address for the highest value?
Excellent. There is not a ugly solution if it works. – Hose – 2014-07-10T18:02:17.683
+1! I agree. This is not ugly; it’s what Excel forces you to do. I was working on something similar, but yours is more elegant and you got it in faster. A couple of notes: (1) If this formula goes into cell
H2
, and there are other product names inG3
,G4
, …, then your references to$G$2
should be changed to$G2
or justG2
. (2) To increase portability/flexibility, you might replace the1
withROW($A$2)-1
(e.g., in case there’s another batch of data in rows 102-200). – Scott – 2014-07-10T18:06:44.393