lrobbo314
Well-known Member
- Joined
- Jul 14, 2008
- Messages
- 3,957
- Office Version
- 365
- Platform
- Windows
INSERTBLANKS will insert blank rows between the values of a given range.
Excel Formula:
=LAMBDA(
array,space_count,
LET(
acnt,ROWS(array),
total,acnt+((acnt-1)*space_count),
s,(SEQUENCE(total)-1)/(space_count+1)+1,
MAKEARRAY(
total,
COLUMNS(array),
LAMBDA(
r,c,
IF(ISINT(INDEX(s,r)),
INDEX(array,INDEX(s,r),c),
""
)
)
)
)
)
Cell Formulas | ||
---|---|---|
Range | Formula | |
A1:A5 | A1 | =SEQUENCE(5) |
C1:C13 | C1 | =INSERTBLANKS(A1#,2) |
E1:E3 | E1 | =SEQUENCE(3) |
G1:G13 | G1 | =INSERTBLANKS(E1#,5) |
M1:O10 | M1 | =INSERTBLANKS(I1:K4,2) |
Dynamic array formulas. |
Upvote
0