Count unique distinct values if condition is true

给你一囗甜甜゛ 提交于 2020-01-15 22:25:11

问题


I try to count the unique values in list but they have to fulfill the condition I have set.

{=SUM(IF($A$1:$A$25=$D$2; 1/COUNTIF($B$1:$B$25; $B$1:$B$25); 0))}

There the first 25 rows of the data as example.

How to count unique distinct values if condition is true in Excel?


回答1:


Just will posting the question, I found the answer:

{=SUM(IF($D$1=$A$1:$D$25, 1/(COUNTIFS($A$1:$A$25; $D$2; $B$1:$E$25; $B$1:$B$25)); 0))}



来源:https://stackoverflow.com/questions/33213119/count-unique-distinct-values-if-condition-is-true

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!