Google Sheets - Workaround for REPT character limit of 32000

Viewed 285

I am trying to repeat a range of values (text), A2:A19 by G2:G19 number of times. However, one of the repetitions has higher 'n' value and therefore no repetitions shows up for that particular text value because REPT result cannot exceed the limit of 32000 characters.

   =ARRAYFORMULA(TRIM(TRANSPOSE(SPLIT(QUERY(REPT(A2:A19&",",G2:G19 ), ,999^99), ","))))

Is there any tweak for this as I have tried multiple ways.

2 Answers

try to REPT it by force indirectly:

=INDEX(QUERY(FLATTEN(IFERROR(IF(SPLIT(REPT("¤×", G2:G), "×")="",,A2:A))), 
 "where Col1 is not null"))

enter image description here

Related