COUNTIF with multiple criteria

╄→尐↘猪︶ㄣ 提交于 2019-12-23 12:28:46

问题


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.


回答1:


you can use COUNTIFS instead

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


来源:https://stackoverflow.com/questions/17215915/countif-with-multiple-criteria

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!