Forum Discussion
QuantumMaximus
Nov 05, 2023Copper Contributor
I need Excel Help
In my sheet, cell B2 has the following string "ABCDEF-A012340WABCD-0101" and cell C2 has a value of 3. I need a formula that outputs 3 separate lines in cell D2. Each line should be separated by 'alt...
- Nov 05, 2023
In D2:
=TEXTJOIN(CHAR(10), TRUE, LEFT(B2, LEN(B2)-4)&TEXT(SEQUENCE(C2, , --RIGHT(B2, 4)), "0000"))
Turn on 'Wrap Text' for D2.
Fill down.
HansVogelaar
Nov 05, 2023MVP
In D2:
=TEXTJOIN(CHAR(10), TRUE, LEFT(B2, LEN(B2)-4)&TEXT(SEQUENCE(C2, , --RIGHT(B2, 4)), "0000"))
Turn on 'Wrap Text' for D2.
Fill down.
- QuantumMaximusNov 05, 2023Copper ContributorThank you soo much Hans, that worked like a charm. I have spent at least 2 days trying to figure this out. Thanks again.