Skip to content

ZINS

>> Reference, Discussion, & Example Applications:

Inserts 1 or more zeros to a sequence of n elements.

  • n : nr. of elements
  • x : element’s group size
  • g : 0’s group size
ZINS = LAMBDA(n, x, g,
LET(
t, TOCOL(
IFNA(EXPAND(WRAPROWS(SEQUENCE(n), x), , g + x), 0)
),
TAKE(t, XMATCH(n, t))
)
);