COUNTIF条件的单元格范围 [英] Cell range for COUNTIF criteria

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

问题描述

我会尽量简化这个过程。



我有两组字符串,比如A1到A5和A10到A20。 b
$ b

我知道 COUNTIF(range,criteria)会给我范围内的单元格数目匹配标准



我想扩展它,使条件也可以是一个范围。



因此,实际上我想检查<$ c范围内的任何单元格$ c> criteria 匹配范围范围中的任何单元格。



有没有您可以在google-speadsheets中使用此公式:


$ b

解决方案

$ b

  = sum(arrayformula(COUNTIF(A1:A3,B1:B3)))


I'll make this as simple as possible

I have two sets of strings, let's say A1 to A5, and A10 to A20.

I understand that COUNTIF(range, criteria) will give me the number of cells in range that match criteria.

I'd like to extend this so criteria can be a range, too.

So—in effect—I'd like to check if any cell in the range criteria matches any cell in the range range.

Is there any way to do this?

解决方案

You can use this formula in google-speadsheets:

=sum(arrayformula(COUNTIF(A1:A3,B1:B3)))

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

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