如何在Google表中与Arrayformula一起使用SUMIF
从Google表格中,我们将获得NOS车辆的输入。在一段时间内,其中一些车辆可能相同。在此期间,我们可能已经注意到这辆车辆犯的交通犯罪。我们是否可以编写代码/功能来实现所述车辆侵犯的罪行的总和?
Col A:时间戳 Col B:车辆编号(从Google表格获得的数据) Col C:输入数(通过基于Col B的Countif相似的Vookup/Query〜获得) Col D:违规数量(1如果是,空单元表示否) Col E:总违规数量〜希望总计基于Col B的总数。
因此,每次Google表格提交,Google Sheet将检查该车辆在Col E中积累并自动化的犯罪总数是多少。
谢谢您的指导。
From google forms, we will get inputs of vehicle nos. over a period of time, and some of these vehicle may be the same. Over this period, we may have noted the traffic offence made by this vehicle. Is there a code/function we can write to sum of the offences the said vehicle had violated?
Col A:Timestamp
Col B:Vehicle No. (Data obtained from google form)
Col C:Entry Count (obtained via VLookup/Query ~ similar to countif based on Col B)
Col D:Violation Count (1 if yes, empty cell means no)
Col E:Total Violation Count ~ hoping to sum the total based on Col B.
As such, with each new google form submission, the google sheet will check what is the total number of offences the said vehicle had accumulated and automate in Col E.
Thank you for your guidance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您需要在车辆上每行的违规总数相同,则是:
如果您需要违规数量的运行总和:
请注意,第二解决方案具有限制:n^2< 10 000 000,其中n是违规的记录数。那就是Google的表格对也应用于中间计算的单元格总数的限制。
列
f:f
不使用。If you need to have the same total amount of violations on every row for the vehicle then it would be:
If you need a running sum for the number of violations:
Be aware that the 2nd solution has a restriction: n^2 < 10 000 000, where n is the number of records with violations. That is Google Sheets restriction on the total number of cells which is also applied to intermediary calculations.
Column
F:F
is not used.