excel中countifs判断条件为多个

2024-11-23 17:30:35
推荐回答(3个)
回答1:

=COUNTIFS(A1:A10,"<>"&{"CN","RJ"},B1:B10,"<>"&{"北京","重庆"})

A1:A10这个范围根据你的数据重新选择

回答2:

=SUM(COUNTIFS(A:A,"<>CN",A:A,"<>RJ",B:B,{"北京","重庆"}))
=SUM(COUNTIFS(A:A,"RJ",B:B,{"北京","重庆"}))+SUM(COUNTIFS(A:A,"CN",B:B,{"北京","重庆"}))

回答3:

其实=,&可以去掉