COUNTIF有多个条件 [英] COUNTIF with multiple criteria

查看:206
本文介绍了COUNTIF有多个条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你可以告诉我如何在多个条件下使用COUNTIF?

Can you please advise on how can I use COUNTIF with multiple conditions?

我的提案(左)显示了一个条件(不同区域)的公式。

My proposal (left) shows the formula for one criterion (distinct regions).

但是,我有兴趣计算每个不同月份的不同区域(两个标准) - 右侧:所需结果。

However, I am interested in counting distinct regions for each distinct month (two criteria) - on the right: desired result.

推荐答案

可以使用COUNTIFS

you can use COUNTIFS instead

=1/COUNTIFS($A:$A,A2,$B:$B,B2)

这篇关于COUNTIF有多个条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆