[英]Count cells that match and do not match some strings
I have a google form feeding data into a spreadsheet and I'm trying to count responses based on string text. 我有一个Google表单,将数据馈入电子表格,并且正在尝试根据字符串文本来计算响应。 The possible responses in a column are - "Yes. I love this" - "No. I hate it" - Random text 列中可能的回答是-“是。我喜欢这个”-“否。我讨厌”-随机文本
The third option is when response is neutral and people are free to fill i whatever they like. 第三种选择是,当回应是中立的,人们可以自由地随心所欲。 I have this formula counting Yes's and No's. 我有这个公式计算是和否。
=countif(F3:F35,"Yes. I love this") & " Yes, " & countif(F3:F35,"No. I hate it") & " No"
What formula can I use for counting all other non-empty cells that aren't Yes or No? 我可以使用什么公式来计算所有其他不是Yes或No的非空单元格?
您可以对F列进行计数,然后用您已有的公式将其减去。
要计算不是Yes
或No
的非空单元格,
=COUNTIFS(F3:F35,"<>Yes. I love this",F3:F35,"<>No. I hate it",A1:A4,"<>")
Starting with the total, remove: 从总数开始,删除:
=33-COUNTBLANK(F3:F35)-COUNTIF(F3:F35,"Yes. I love this")-COUNTIF(F3:F35,"No. I hate it")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.