Excel:根据2个值计算频率基数

时间:2016-09-08 15:21:11

标签: excel countif

我在线搜索了这个问题,并尝试了这个formula with frequency(if..)

Sheet1
A       | B
ABC123  | 01/01/2015
ABC123  | 02/01/2015
ABC123  | 03/01/2015
BB123   | 01/01/2015

Sheet2
A       | B          | C
ABC123  | 02/01/2015 | Count = 2
BBB123  | 02/02/2015 | Count = 0

我希望得到ABC123Sheet1发生02/01/2015次的次数/频率。=sum(if(FREQUENCY(if(CENSUS!A:A='Roster Reconciliation'!A2, if(CENSUS!A:A<>"", CENSUS!A:A), if(CENSUS!B:B>='Roster Reconciliation'!'Roster Reconciliation'!C2, if(CENSUS!B:B<>"", CENSUS!B:B))),1)) 。在这种情况下,答案是三。

cassandra.yaml

目前这不起作用,因为我可能输入了太多的论点。

或者还有另一种方法吗?

1 个答案:

答案 0 :(得分:2)

这应该有效:

=COUNTIF(A:A, "ABC123", B:B, ">=02/01/2015")

如果要将其与特定单元格绑定:

=countifs(CENSUS!A:A, A2, CENSUS!B:B, ">=" & C2)