Google表格公式符合多个条件 [英] Google Sheets formula match multiple criteria

查看:111
本文介绍了Google表格公式符合多个条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个电子表格,如图中所示.我想做的是生成一个公式,该公式将计算纽约 MALE 选择蓝色颜色的次数.在D列中,用户可以输入1-3种不同的颜色.在这种情况下,B列将被忽略.有人可以帮我解决这个问题吗?

I have a spreadsheet like the one shown in the image. What I would like to do is generate a formula that will count how many times MALEs from NEW YORK choose the BLUE color. In column D, the user can enter 1-3 different colors. Column B will be ignored in this case. Can anyone help me with the formula?

推荐答案

在Google文档中尝试使用此公式

Try this formula in Google docs

=ARRAYFORMULA(sum(if(A2:A4="Male",if(C2:C4="New York",If(isnumber(search("Blue",D2:D4)),1)))))

您可以根据需要将其扩展为任意多行

you can expand it to as many rows as you need

这篇关于Google表格公式符合多个条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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