Google-sheets – Сopy cells depending on values in another cell

concatenateformulasgoogle sheetsgoogle-sheets-arrayformula

In Google Sheets I try to copy cells B2:B4 depending on values in other cells C2:C4.
For example – example.xlsx made in Excel.

But stuck and can't find a solution on how to do it in Google Sheets.

enter image description here

I will be very grateful for the help!

Best Answer

=TRANSPOSE(SPLIT(JOIN(","; ARRAYFORMULA(REPT(SPLIT(
 INDIRECT("B2:B"&COUNTA(B2:B)+1); ",")&","; 
 INDIRECT("C2:C"&COUNTA(C2:C)+1)))); ","))

0