Assuming that F2:F3 contains ACME and WIDGET, try the following...
G2, copied down:
=SUMPRODUCT(--($A$1:$A$11<""),--($C$1:$C$11=F2),--(MATCH($A$1:$A$11&"#"&
$C$1:$C$11,$A$1:$A$11&"#"&$C$1:$C$11,0)=ROW($A$1:$ A$11)-ROW($A$1)+1),$D$1
:$D$11)
or
=SUM(IF(FREQUENCY(IF(($A$1:$A$11<"")*($C$1:$C$11= F2),MATCH($A$1:$A$11&"#
"&$C$1:$C$11,$A$1:$A$11&"#"&$C$1:$C$11,0)),ROW($A$ 1:$A$11)-ROW($A$1)+1)0
,$D$1:$D$11))
....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.
Hope this helps!
In article <55178f8d2d1d6@uwe, "Brian D via OfficeKB.com" <u9303@uwe
wrote:
Thanks Aladin,
It seems to be working. I had to add another & in =A2&"#"&C2
I'll have to try it on my larger data sheet. Is there any way to do this
without having to copy the two lines down the entire data sheet?
|