2 deleted 6 characters in body
source | link

=ARRAYFORMULA(IFERROR(TRANSPOSE(SPLIT(JOIN("" , REPT(Main!A2:A&"-♥", Main!B2:B)), "♥"))&
 IF(ROW(A2:A)="", , COUNTIFS(ROW(INDIRECT(
 "A1:A"&COUNTA(TRANSPOSE(SPLIT(JOIN("" , REPT(Main!A2:A&"♥", Main!B2:B)), "♥"))))),
 "<="&ROW(INDIRECT(
 "A1:A"&COUNTA(TRANSPOSE(SPLIT(JOIN( , REPT(Main!A2:A&"♥", Main!B2:B)), "♥"))))), 
 TRANSPOSE(SPLIT(JOIN("" , REPT(Main!A2:A&"♥", Main!B2:B)), "♥")), 
 TRANSPOSE(SPLIT(JOIN("" , REPT(Main!A2:A&"♥", Main!B2:B)), "♥")))), ))

=ARRAYFORMULA(IFERROR(TRANSPOSE(SPLIT(JOIN("" , REPT(Main!A2:A&"-♥", Main!B2:B)), "♥"))&
 IF(ROW(A2:A)="", , COUNTIFS(ROW(INDIRECT(
 "A1:A"&COUNTA(TRANSPOSE(SPLIT(JOIN("" , REPT(Main!A2:A&"♥", Main!B2:B)), "♥"))))),
 "<="&ROW(INDIRECT(
 "A1:A"&COUNTA(TRANSPOSE(SPLIT(JOIN( , REPT(Main!A2:A&"♥", Main!B2:B)), "♥"))))), 
 TRANSPOSE(SPLIT(JOIN("", REPT(Main!A2:A&"♥", Main!B2:B)), "♥")), 
 TRANSPOSE(SPLIT(JOIN("", REPT(Main!A2:A&"♥", Main!B2:B)), "♥")))), ))

=ARRAYFORMULA(IFERROR(TRANSPOSE(SPLIT(JOIN( , REPT(Main!A2:A&"-♥", Main!B2:B)), "♥"))&
 IF(ROW(A2:A)="", , COUNTIFS(ROW(INDIRECT(
 "A1:A"&COUNTA(TRANSPOSE(SPLIT(JOIN( , REPT(Main!A2:A&"♥", Main!B2:B)), "♥"))))),
 "<="&ROW(INDIRECT(
 "A1:A"&COUNTA(TRANSPOSE(SPLIT(JOIN( , REPT(Main!A2:A&"♥", Main!B2:B)), "♥"))))), 
 TRANSPOSE(SPLIT(JOIN( , REPT(Main!A2:A&"♥", Main!B2:B)), "♥")), 
 TRANSPOSE(SPLIT(JOIN( , REPT(Main!A2:A&"♥", Main!B2:B)), "♥")))), ))

1
source | link

=ARRAYFORMULA(IFERROR(TRANSPOSE(SPLIT(JOIN("" , REPT(Main!A2:A&"-♥", Main!B2:B)), "♥"))&
 IF(ROW(A2:A)="", , COUNTIFS(ROW(INDIRECT(
 "A1:A"&COUNTA(TRANSPOSE(SPLIT(JOIN("" , REPT(Main!A2:A&"♥", Main!B2:B)), "♥"))))),
 "<="&ROW(INDIRECT(
 "A1:A"&COUNTA(TRANSPOSE(SPLIT(JOIN( , REPT(Main!A2:A&"♥", Main!B2:B)), "♥"))))), 
 TRANSPOSE(SPLIT(JOIN("", REPT(Main!A2:A&"♥", Main!B2:B)), "♥")), 
 TRANSPOSE(SPLIT(JOIN("", REPT(Main!A2:A&"♥", Main!B2:B)), "♥")))), ))