excel里,实现介于两个数值之间的数字个数的计数

2024-11-16 08:51:22
推荐回答(1个)
回答(1):

=COUNTIF(A1:A5,">=2")-COUNTIF(A1:A5,">4")

=SUMPRODUCT((A1:A5>=2)*(A1:A5<=4))

如加和:
=SUMPRODUCT((A1:A5>=2)*(A1:A5<=4),A1:A5)