电子表格:仅当文本列为 1 时,如何对列中的值求和?
假设我有这个数据,
4 1
4 0
4 1
3 0
5 1
如果右侧的值为 1 或 true,我如何编写一个函数(使用 SUM
或类似的东西)来添加左侧的所有值,
总计应该13岁
Let's say I have this data
4 1
4 0
4 1
3 0
5 1
How do I write a function (using SUM
or something like that) to add all the values on the left, if the values on the right are 1, or true
The total should be 13
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
假设使用 A 列和 B 列...
仅检查 1:
如果您还想检查 TRUE:
Assuming columns A and B are used...
Check just for 1:
If you want to check for TRUE also:
按 b 列排序,然后对 a 列中所需的值自动求和。便宜&懒惰的解决方案。
sort by column b, then auto-sum the values you want in column a. cheap & lazy solution.