Using Countifs to count distinct values and multiple criteria?
问题 I am trying to count how many brands a certain client has passed through. I essentially have two columns a client list and a brand column. In some cases, there may be duplicates of the brand so I only need to count them once. I have tried to use several variants Countifs/Sumifs formulas but to no success. Totally lost and would appreciate any help Example Thanks 回答1: Try: =SUMPRODUCT(--(COUNTIFS($A:$A,$D2,$B:$B,$H$1:$H$10)>0)) You'll need to make a helper column which contains all the brands