Google Sheets formula match multiple criteria

£可爱£侵袭症+ 提交于 2019-12-22 17:56:09

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/12254637/google-sheets-formula-match-multiple-criteria

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!