Google电子表格COUNTIF公式相当于两个条件

编程入门 行业动态 更新时间:2024-10-23 13:38:58
本文介绍了Google电子表格COUNTIF公式相当于两个条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个包含几列的Google文档电子表格。在D列我有价值男人或女人。在G栏中,我的值是或否。我想要做的是统计MAN用YES来回答多少次。所以有两个标准1.Man和2.Yes b $ b

我有这个公式,它只计算单元格D2和G2中的值。我想从D2到D500和从G2到G500的数值。

= IF(AND('Revision:2'!D2 =Man,'Revision :2'!G2 =是),1,0)

我该如何做?

谢谢!

解决方案

Google电子表格不支持COUNTIFS功能...但是以下是您可以使用的几个公式之一你想要做什么... $ $ $ $ $ $ $ $ $ $ $ $ $ $ = $ Array $(Array = ArrayFormula(SUM((D2:D500 =Man)* G500 =是)))

I have a Google Docs spreadsheet with a few columns. In column D I have values Man OR Woman. In column G I have values Yes OR No. What I would like to to do is to count how many times MAN will answer with YES. So there are two criterias 1.Man and 2.Yes

I have this formula which only counts values in cells D2 and G2. I would like to count values from D2 to D500 and from G2 to G500.

=IF(AND('Revision: 2'!D2="Man",'Revision: 2'!G2="Yes"),1,0)

How I can do that?

Thank you!

解决方案

Google spreadsheet does not support COUNTIFS function ... however following is one of several formulas you can use for what you want to do ...

=ArrayFormula( SUM( ( D2:D500 = "Man" ) * ( G2:G500 = "Yes" ) ) )

更多推荐

Google电子表格COUNTIF公式相当于两个条件

本文发布于:2023-10-30 19:14:18,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:公式   电子表格   条件   两个   Google

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!