Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google sheets 使用内置公式模拟Google电子表格中的循环_Google Sheets - Fatal编程技术网

Google sheets 使用内置公式模拟Google电子表格中的循环

Google sheets 使用内置公式模拟Google电子表格中的循环,google-sheets,Google Sheets,我在GS中有这样的专栏: Equipments Amount . Equipment 1 Equipment 2 ---------- ------- ----------- ----------- Equipment 1 2 Process 1 Process 3 Equipment 2 3 Process 2 Process 4 Process

我在GS中有这样的专栏:

Equipments   Amount . Equipment 1   Equipment 2
----------   -------  -----------   -----------
Equipment 1    2        Process 1     Process 3
Equipment 2    3        Process 2     Process 4
                                      Process 5
我需要生产设备1 x2和设备2 x3

生产设备时,流程1执行2次,流程2-2次,流程3-3次,流程4-3次,流程5-3次

所以我需要生成这样的列表:

Process 1
Process 1
Process 2
Process 2
Process 3
Process 3
Process 3
Process 4
Process 4
Process 4
Process 5
Process 5
Process 5

当然,我想要一个动态的公式(例如,可以添加其他设备或更改特定设备的流程)

使用公式解决问题并不容易


我强烈建议你写一封信。这比你想象的要容易。您甚至可以查看复制操作所需的代码。

1使用
rept
列出:

=转置(拆分(连接(“,”,过滤器(报告(C2:C&“,”,B2),C2:C“”),“,”)

多个列表
报告

=转置(拆分(连接(“,”,过滤器(报告(C2:C&“,”,VLOOKUP(D2:D,A:B,2,)),C2:C“”),“,”))


很抱歉,我的评论太晚了。解决方案很好!谢谢