Google文档电子表格公式符合多个条件 [英] Google Docs spreadsheet formula match multiple criteria
本文介绍了Google文档电子表格公式符合多个条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
在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? Thank you!
解决方案
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屋!
查看全文