• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Sumproduct to count unique values only

YasserKhalil

Well-Known Member
Hello everyone
I have a helper column in column F
Code:
=IF(SUMPRODUCT(($B$5:$B5=$B5)*($E$5:$E5=$E5))=1,1,"")
This helper column to count unique values only in I4:I7
It is required to count nationality and skipping duplicated values in Column B
Here's the attachment to illustrate the issue

I need to get rid of the helper column and use only one formula without the need of helper column. Is it possible?
 

Attachments

Hi,

Another two, without CSE,

=SUM(--(FREQUENCY(INDEX(($E$5:$E$24=H4),0)*$B$5:$B$24,INDEX(($E$5:$E$24=H4),0)*$B$5:$B$24)>0))-1

=SUM(INDEX(($E$5:$E$24=H4)/COUNTIFS($E$5:$E$24,$E$5:$E$24,$B$5:$B$24,$B$5:$B$24),0))

David
 
Last edited:
Back
Top