Excel里如何计算个数
发布网友
发布时间:2022-05-15 23:03
我来回答
共1个回答
热心网友
时间:2024-02-28 20:23
=COUNTIF(范围,值)——输出选定范围内符合该值的数据的个数
例如
=COUNTIF(A1:A19,"A")
=COUNTIF(A1:A19,"B")
=COUNTIF(A1:A19,"C")
=COUNTIF(A1:A19,"D")
一起输的话麻烦一点,可以参考下面的语句
=CONCATENATE("A=",TEXT(COUNTIF(A1:A19,"A"),"0"),";B=",TEXT(COUNTIF(A1:A19,"B"),"0"),";C=",TEXT(COUNTIF(A1:A19,"C"),"0"),";D=",TEXT(COUNTIF(A1:A19,"D"),"0"))
输出A=多少;B=多少;C=多少;D=多少