数组公式和序列函数有问题

问题描述 投票:0回答:1

我有一张纸 https://docs.google.com/spreadsheets/d/15lwtkTifZDrLICMFp_Dr17gkq8hfSCfG6dydVhK_T4I/edit?usp=sharing 其中(B 列)我尝试将 arrayformula() 与equence() 结合起来。我很清楚它行不通,但我不知道如何解决。 C 列显示了我想要的结果。

在现实生活中,不是把数字放在一起,公式更复杂,但想法是一样的。

我会对任何见解有所帮助。

我尝试使用 makearray() 和其他方法。

google-sheets-formula sequence
1个回答
0
投票

这是您可以测试的一种通用方法:

=reduce(tocol(,1),A2:index(A:A,match(,0/(A:A<>""))),lambda(a,c,vstack(a,hstack(sequence(c),let(Σ,offset(c,,1),wrapcols(Σ,c,Σ))))))

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.