Originally Posted by
DonkeyOte
I *think* you're saying you want a unique count of Column 8 values per Group in Column 1 ?
If as implied your data is sorted by Column 1 then perhaps you could get away with:
D2:
=IF($A2=$A1,$D1,SUMPRODUCT(($H2:INDEX($H:$H,MATCH($A2,$A:$A))<>"")/COUNTIF($H2:INDEX($H:$H,MATCH($A2,$A:$A)),$H2:INDEX($H:$H,MATCH($A2,$A:$A))&"")))
copied down
Note the above would return values where H is blank... this is to reduce calculation burden (ie unique calculation conducted only once per group).
The use of INDEX to reduce the range size being processed within the SUMPRODUCT itself ... if you really only have a hundred rows of data you could remove the INDEXes and apply the SUMPRODUCT to the entire range adding in a group test, ie:
D2:
=IF($A2=$A1,$D1,SUMPRODUCT(--($A2:$A$100=$A2),($H2:$H$100<>"")/COUNTIF($H2:$H$100,$H2:$H$100&"")))
copied down
Bookmarks