如果在一个单元格中选择了选中的选项,如何计算值
我有一个电子表格,用户可以在其中填写表格,他们可以通过单击复选框来选择多个选项。
回复表如下所示
我一直在尝试使用 COUNTIF
但它不起作用,因为我没有选择
=COUNTIF('Form Responses 1'!C2:F4,"*"&$B$1&"*")
我假设需要添加 VLOOKUP但我不确定如何将其与选项
Here's a 电子表格 相匹配 尝试一下
I have a spreadsheet where users fill out a form, they have multiple options they can pick by clicking the checkboxes.
The responses sheets looks like this
I want to filter the results by option, so my main goal is to get the total amount of options selected:
I've been trying with COUNTIF
but it's not working because I'm not selecting the specific response
=COUNTIF('Form Responses 1'!C2:F4,"*"&$B$1&"*")
I'm assuming I need to add a VLOOKUP
but I'm not sure how to match it with the option
Here's a spreadsheet to play around with it
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试:
try:
也许是这样的公式:
如果引用的单元格包含指定的文本,则输出
1
,否则输出0
。请参阅有关查询函数和查询语言了解更多信息。Perhaps a formula like this:
This outputs a
1
if the referenced cell contains the specified text, and a0
otherwise. See the docs for the Query Function and the Query Language for more information.