I have a very basic table (two columns) with thousands of rows. Column A has a label, and column B has an entry. There can be multiple entries (rows) per label, but the number of entries per label will vary.
(original table)
Label A, Entry 1
Label A, Entry 2
Label B, Entry 1
Label C, Entry 1
Label C, Entry 2
Label C, Entry 3
...
If I convert that to a Pivot Table, it is very easy to produce ...
Label A
Entry 1
Entry 2
Label B
Entry 1
Label C
Entry 1
Entry 2
Entry 3
What I need, is the following output ...
Label A, Entry 1, Entry 2
Label B, Entry 1
Label C, Entry 1, Entry 2, Entry 3
Basically, I need a table that is one label per row, followed by however many entries there are for that label.
I am struggling to understand how to get from the original table to the desired output. The pivot table is close to what I need, I just need the entries to be listed horizontally across multiple columns, instead of listed down multiple rows. But those groupings of entries per label is exactly what I need, just a different format. Maybe I need to use VBA and some scripting? Or maybe there is a function built into Excel already to simply produce the desired output? Any ideas or guidance would be appreciated.
TIA.
(original table)
Label A, Entry 1
Label A, Entry 2
Label B, Entry 1
Label C, Entry 1
Label C, Entry 2
Label C, Entry 3
...
If I convert that to a Pivot Table, it is very easy to produce ...
Label A
Entry 1
Entry 2
Label B
Entry 1
Label C
Entry 1
Entry 2
Entry 3
What I need, is the following output ...
Label A, Entry 1, Entry 2
Label B, Entry 1
Label C, Entry 1, Entry 2, Entry 3
Basically, I need a table that is one label per row, followed by however many entries there are for that label.
I am struggling to understand how to get from the original table to the desired output. The pivot table is close to what I need, I just need the entries to be listed horizontally across multiple columns, instead of listed down multiple rows. But those groupings of entries per label is exactly what I need, just a different format. Maybe I need to use VBA and some scripting? Or maybe there is a function built into Excel already to simply produce the desired output? Any ideas or guidance would be appreciated.
TIA.