Google Sheets - 如何计算一列上非零数字的条纹
我有一个包含各种数字的字数列,但每个单元格都有一个公式。所以我想只计算具有非零数字的单元格,并在其达到零时停止。换句话说,就是连胜。
100
200
400
100
200
0
200
300
0
本例中最长的连续次数为 5。我可以使用什么公式来实现此目的?我已经尝试过了,但它正在寻找空白单元格而不是带有“0”的单元格 =ArrayFormula(match(TRUE,ISBLANK('每日计数'!B2:B),0)-1)
I have a wordcount column with various numbers but each cell has a formula. So I'd like to count only the cells that have a non-zero number and stop when it hits a zero. A streak in other words.
100
200
400
100
200
0
200
300
0
the longest streak in this example would be 5. What formula could I use for this? I've tried this already, but it's looking for blank cells not cells with "0"=ArrayFormula(match(TRUE,ISBLANK('Daily Count'!B2:B),0)-1)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试:
最长使用时间:
列出所有罢工:
try:
for longest strike use:
to list all strikes:
经典方法(在 Excel 中也适用相同的方法)是使用频率:
The classic way (same method works in Excel) is to use Frequency: