Forum Discussion
qazzzlyt
Nov 14, 2021Copper Contributor
Stack two columns to one with out VBA
I have 2 columns as above, column A and column B. I want them conbimed to column D without ANY manual work. Note: (1) VBA is NOT allowed (by my company policy lol). (2) You might want to cre...
- Nov 14, 2021
As variant
with
=LET( aN, COUNTA(A:A), bN, COUNTA(B:B), k, SEQUENCE(aN+bN), IF(k<=aN, INDEX(A:A,k), INDEX(B:B, k-aN)) )
SergeiBaklan
Nov 14, 2021Diamond Contributor
As variant
with
=LET(
aN, COUNTA(A:A),
bN, COUNTA(B:B),
k, SEQUENCE(aN+bN),
IF(k<=aN, INDEX(A:A,k), INDEX(B:B, k-aN)) )