Skip to content

COLSRPT_N_TIMES

>> N/A

Repeats each Column ‘N’ times.

  • array : array to repeat
  • n_times_count : number of times to repeat each column in the array
COLSRPT_N_TIMES = LAMBDA(array, n_times_count,
LET(
a, array,
n, n_times_count,
INDEX(
a,
TOCOL(SEQUENCE(, ROWS(a))),
TOROW(IF(n >= SEQUENCE(n), SEQUENCE(, COLUMNS(a)), NA()), 0, TRUE)
)
)
);