当单元格具有公式时,使用COUNTIFS来计算空白 [英] Using COUNTIFS to count blank when cell has a formula

查看:1188
本文介绍了当单元格具有公式时,使用COUNTIFS来计算空白的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果B列不为空白,我有一些需要统计的条件.但是我在单元格B中有一个公式,所以如果我做一个简单的

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.

推荐答案

尝试以下公式

[根据评论编辑]

要计算填充的单元格,但不计算",请使用

To count populated cells but not "" use

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

计算文本值,用于数字

=COUNT(B:B)

如果您有文字和数字,请将两者结合起来

If you have text and numbers combine the two

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

或使用SUMPRODUCT-与我最初的建议相反

or with SUMPRODUCT - the opposite of my original suggestion

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

这篇关于当单元格具有公式时,使用COUNTIFS来计算空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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