
Originally Posted by
arvarr
zbor...The formula that you provided ...only provides me the unique occurences for the whole range.
zbor was simply stating that your existing unique function would fail if you had blanks - it was not posted as an answer to your actual question.
Pre XL2007:
=SUMPRODUCT(--($A$2:$A$7=$A10),--(MATCH($A$2:$A$7&"@"&$B$2:$B$7,$A$2:$A$7&"@"&$B$2:$B$7,0)=(ROW($A$2:$A$7)-ROW($A$2)+1)))
copied down
or
=SUM((FREQUENCY(IF($A$2:$A$7=$A10,MATCH($B$2:$B$7,$B$2:$B$7,0)),ROW($B$2:$B$7)-ROW($B$2)+1)>0)+0)
confirmed with CTRL + SHIFT + ENTER (enter alone will not suffice)
copied down
In addition to above - for XL2007+
=SUMPRODUCT(($A$2:$A$7=$A10)/COUNTIFS($A$2:$A$7,$A$2:$A$7&"",$B$2:$B$7,$B$2:$B$7&""))
copied down
Bookmarks