• 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 & COUNTIFS

Tripp

Member
Hello,

I have been playing around with counting unique values in a column based on other values in another column using a combination of COUNTIFS and SUMPRODUCT. After lots of experimenting, I then searched and found the following formula but I'm not entirely sure how it works. Could someone explain why the first array divided by the COUNTIFS works?

=IF(SUMPRODUCT(--(Tbl_1[Col1]="A")/(COUNTIFS(Tbl_1[Col1],Tbl_1[Col1]&"",Tbl_1[Col2],Tbl_1[Col2]&"")))<>Total No,"Check List","List OK")

I understand that the "" removes any blanks and the first array shows all the values that match the first criteria. I also get that the COUNTIFS is showing me the unique values but I don't see why the division works.

I hope this is clear enough, but let me know if not.

TIA
Tripp
 
Back
Top