Google Sheets 公式匹配多个条件 [英] Google Sheets formula match multiple criteria
本文介绍了Google Sheets 公式匹配多个条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个如图所示的电子表格.我想做的是生成一个公式,该公式将计算 纽约 的 MALEs 选择 BLUE 颜色的次数.在 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 Sheets 公式匹配多个条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文