如果条件为真,则计算唯一的唯一值 [英] Count unique distinct values if condition is true
本文介绍了如果条件为真,则计算唯一的唯一值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试计算列表中的唯一值,但它们必须满足我设置的条件。
{= SUM (IF($ A $ 1:$ A $ 25 = $ D $ 2; 1 / COUNTIF($ B $ 1:$ B $ 25; $ B $ 1:$ B $ 25); 0))}
前25个
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?
解决方案
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))}
这篇关于如果条件为真,则计算唯一的唯一值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文