Google电子表格公式符合多个条件 [英] Google spreadsheet formula match multiple criteria
问题描述
我有一张电子表格,如图中所示。我想要做的是生成一个公式,它会计算 选择 BLUE 颜色的次数。在D列中,用户可以输入1-3种不同的颜色。在这种情况下,B列将被忽略。任何人都可以帮助我的公式?
在Google文档中试用这个公式
= ARRAYFORMULA(sum(if(A2:A4 =Male,if(C2:C4 =New York,If(isnumber(search(Blue,D2:D4)),1))))) / code>
您可以根据需要将其展开为多少行
I have a spreadsheet like the one shown in the image. What I would like to do is generate a formula which will count how many times MALEs from NEW YORK choose the BLUE color. In the 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?
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屋!