Skip to content

ROWS_N_TIMES

>> N/A

Repeats each Row ‘N’ times.

  • array : array to repeat
  • n_times_count : number of times to repeat each row in the array
ROWSRPT_N_TIMES = LAMBDA(array, n_times_count,
LET(
a, array,
n, n_times_count,
INDEX(a, TOCOL(IF(n >= SEQUENCE(, MAX(n)), SEQUENCE(ROWS(a)), NA()), 2), SEQUENCE(, COLUMNS(a)))
)
);