Transpose Multiple Rows Into Single, Concatenated Column

%3CLINGO-SUB%20id%3D%22lingo-sub-2776373%22%20slang%3D%22en-US%22%3ETranspose%20Multiple%20Rows%20Into%20Single%2C%20Concatenated%20Column%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2776373%22%20slang%3D%22en-US%22%3E%3CP%3EI%20want%20to%20transpose%20multiple%20items%20out%20of%20multiple%20rows%20into%20a%20single%2C%20concatenated%20column.%26nbsp%3B%20For%20instance%2C%20starting%20with...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CU%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20CA%26nbsp%3B%20CB%26nbsp%3B%20CC%26nbsp%3B%20CD%3C%2FU%3E%3C%2FP%3E%3CP%3ER1%26nbsp%3B%20%26nbsp%3BX%26nbsp%3B%20%26nbsp%3B%201%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B2%26nbsp%3B%20%26nbsp%3B%203%3C%2FP%3E%3CP%3ER2%26nbsp%3B%20%26nbsp%3BY%26nbsp%3B%20%26nbsp%3B%204%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B5%26nbsp%3B%20%26nbsp%3B%206%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWould%20change%20into...%3C%2FP%3E%3CP%3E%3CU%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20CE%3C%2FU%3E%3C%2FP%3E%3CP%3ER1%26nbsp%3B%20X-1%3C%2FP%3E%3CP%3ER2%26nbsp%3B%20X-2%3C%2FP%3E%3CP%3ER3%26nbsp%3B%20X-3%3C%2FP%3E%3CP%3ER4%26nbsp%3B%20Y-4%3C%2FP%3E%3CP%3ER5%26nbsp%3B%20Y-5%3C%2FP%3E%3CP%3ER6%26nbsp%3B%20Y-6%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20has%20to%20be%20a%20formula%20rather%20than%20a%20script%20(i.e.%2C%20the%20table%20must%20be%20easily%20copy%2Fpasted%20and%20instantly%20updated%20without%20any%20intermediate%20steps).%26nbsp%3B%20I've%20seen%20a%20few%20other%2C%20similar%20formulas%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.extendoffice.com%2Fdocuments%2Fexcel%2F3360-excel-transpose-every-5-rows.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.extendoffice.com%2Fdocuments%2Fexcel%2F3360-excel-transpose-every-5-rows.html%3C%2FA%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EAny%20suggestions%2C%20Microsoft%20Community%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2776373%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2776650%22%20slang%3D%22en-US%22%3ERe%3A%20Transpose%20Multiple%20Rows%20Into%20Single%2C%20Concatenated%20Column%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2776650%22%20slang%3D%22en-US%22%3Ehow%20many%20rows%20does%20your%20dataset%20have%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2779169%22%20slang%3D%22en-US%22%3ERe%3A%20Transpose%20Multiple%20Rows%20Into%20Single%2C%20Concatenated%20Column%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2779169%22%20slang%3D%22en-US%22%3ENo%20more%20than%20200%20rows%20and%2035%20columns.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2779672%22%20slang%3D%22en-US%22%3ERe%3A%20Transpose%20Multiple%20Rows%20Into%20Single%2C%20Concatenated%20Column%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2779672%22%20slang%3D%22en-US%22%3Ehave%20you%20tried%20power%20query%20and%20unpivoting%20other%20columns%20starting%20with%20columns%20CB%20then%20add%20an%20index%20column%20after%20unpivoting%20the%20other%20columns%3F%20I%20tried%20it%20but%20merging%20the%20R's%20with%20the%20index%20numbers%20yeilds%20the%20numbers%20before%20the%20letter%20so%20it%20looks%20like%201R%20instead%20of%20R1%20so%20you'll%20have%20to%20do%20the%20left(%5Bcolumn%5D%2C1)%26amp%3B%5Bindex%20column%5D%20after%20you%20close%20and%20load%3C%2FLINGO-BODY%3E
Occasional Contributor

I want to transpose multiple items out of multiple rows into a single, concatenated column.  For instance, starting with...

 

      CA  CB  CC  CD

R1   X    1     2    3

R2   Y    4     5    6

 

Would change into...

      CE

R1  X-1

R2  X-2

R3  X-3

R4  Y-4

R5  Y-5

R6  Y-6

 

It has to be a formula rather than a script (i.e., the table must be easily copy/pasted and instantly updated without any intermediate steps).  I've seen a few other, similar formulas:

 

Any suggestions, Microsoft Community?

 

Thanks!

3 Replies
how many rows does your dataset have
No more than 200 rows and 35 columns.
have you tried power query and unpivoting other columns starting with columns CB then add an index column after unpivoting the other columns? I tried it but merging the R's with the index numbers yeilds the numbers before the letter so it looks like 1R instead of R1 so you'll have to do the left([column],1)&[index column] after you close and load