Google Sheets:使用ArrayFormula复制一个公式直到一个设定值

Google Sheets: Use ArrayFormula to copy a formula until a set value

我正在尝试使用 Google 表格中的 ArrayFormula 创建一个公式直到设定值。

可以在电子表格中查看最终结果值: https://docs.google.com/spreadsheets/d/1yBC4oQuhKOkIkf3lQZGBKcZQ3YjU_5N6MCIJZzdt0O4/edit?usp=sharing

谢谢!

删除红细胞中的所有内容并在 D4 中使用它:

=ARRAYFORMULA(IFERROR(SUBSTITUTE(SPLIT(REPT("♠♥", B4:B-1)&
 REPT(B1/C4:C&"♥", C4:C), "♥"), "♠", )))