Duplicate Rows in Google Spreadsheet based on Value

后端 未结 2 1973
隐瞒了意图╮
隐瞒了意图╮ 2021-01-03 08:10

I\'m trying to programatically duplicate rows in a Google spreadsheet. I would like the number of times the row is duplicated to be based on one of the values in the row its

2条回答
  •  孤城傲影
    2021-01-03 08:53

    Assuming your input is on inSheet, on a different sheet you can place the following formula =transpose(split(arrayformula(textjoin(",",false,iferror(rept(inSheet!A1:A&",",inSheet!$C1:$C)))),",")) and drag it right twice and you're done. This could be bulletproofed to handle empty cells or ones with commas or repeat values of 0, but for nice data like above, it works as is.

提交回复
热议问题