Using COUNTIFS to count blank when cell has a formula

孤街浪徒 提交于 2019-11-29 14:29:34

问题


I have criteria where I need to count if a column B is not blank. But I have a formula in Cell B, So if I do a simple

=Countifs(B1:B10,"<>")      

This returns the count of the cells which have the formula but I just need the blanks when the formula does not populate anything.


回答1:


Try this formula

[edited as per comments]

To count populated cells but not "" use

=COUNTIF(B:B,"*?")

That counts text values, for numbers

=COUNT(B:B)

If you have text and numbers combine the two

=COUNTIF(B:B,"*?")+COUNT(B:B)

or with SUMPRODUCT - the opposite of my original suggestion

=SUMPRODUCT((B:B<>"")*(B:B<>0))



来源:https://stackoverflow.com/questions/22362502/using-countifs-to-count-blank-when-cell-has-a-formula

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