统计embedded列中string的值(Google Spreadsheets)
我有一个Google调查,我创build了一些select题。 现在,我正在计算回应。
[A] [B] [Response#] [Selections] [1] [Apple,Orange,Banana] [2] [Orange,Banana] [3] [Apple,Orange,Banana] [4] [Banana] [5] [Apple,Banana] [6] [Apple,Orange] .
所以在我的汇总电子表格中,我想要总计:
[Favorite Fruit] [Total] [Apple] [4] [Orange] [4] [Banana] [5] .
我试过使用:
=countif('Responses'!B:B,find(A2))
但没有结果(其中A2是“苹果”一词)。 我知道find
是不完整的,然后我也尝试把find(A2,'Responses'!B:B)
但是这是不正确的。 我很难过
你将不得不使用通配符..请尝试:
=countif('Responses'!B:B,"*"&A2&"*")
看看是否有用?
假设Apple,Orange和Banana分别位于摘要表单元格A1,A2和A3中,并且数据位于单元格A1:B20中的“数据”单独表单中,则可以使用以下内容:
=SUMPRODUCT((NOT(ISERROR(FIND(A1, Data!$A$1:$B$20)))*1))