Excel: CountIf Quandry

删除回忆录丶 提交于 2019-12-12 03:34:57

问题


Thanks for your help in advance!

So my problem is the following; I have a sheet which I use to log risks that come up in my project. They are graded from Critical to Low, and are either "Open" or "Closed". I want a formula that will count only the open actions which are critical. So far i've got =COUNTIF(Risks!E:E,"Critical"), which correctly counts the number of critical risks, but obviously doesn't take into account if they are open or closed. I tried using än IF statement at the start, but found that =IF(Risks!H:H="Open",COUNTIF(Risks!E:E,"Critical")) wasn't really returning what I needed.

I definitely remember getting this to work before, but I'm thinking perhaps I used VBA? Been a while since I've used excel!

Any help much appreciated!

Ed


回答1:


Use COUNTIFS():

=COUNTIFS(Risks!E:E,"Critical",Risks!H:H,"Open")

COUNTIFS() allows the use of multiple criteria.



来源:https://stackoverflow.com/questions/36697976/excel-countif-quandry

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