How to group multiple values with same identifier

Excellin T

New Member
Joined
Oct 26, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello, First time post, and I haven't been able to find an answer to this anywhere!

I have two columns of data. First column contains a unique identifier, second column contains components of the first column. Each component is listed separately, but I would like to get a list where it shows every component for a unique identifier in the same row. See example below for a better description. I don't even need the commas in the end result (although it would be nice). I've played with everything from pivot tables to vlookups, but I still just can't quite get it. I know how to get a unique list from the unique identifiers in the first column (Box1, Box2), so I can take care of that.... I'm just struggling with how to match the data in the second column to the unique identifiers in the first column, on one row. Thanks SO much in advance for any help you can offer!

DATA
Box1 A
Box1 B
Box2 C
Box1 D
Box2 E

GOAL
Box1 A, B, D
Box2 C, E
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,657
Office Version
  1. 365
Platform
  1. Windows
How about
+Fluff v2.xlsm
ABCDE
1
2Box1ABox1A, B, D
3Box1BBox2C, E
4Box2C
5Box1D
6Box2E
7
Work
Cell Formulas
RangeFormula
D2:D3D2=UNIQUE(A2:A6)
E2:E3E2=TEXTJOIN(", ",,FILTER(B2:B6,A2:A6=D2))
Dynamic array formulas.
 

Excellin T

New Member
Joined
Oct 26, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
How about
+Fluff v2.xlsm
ABCDE
1
2Box1ABox1A, B, D
3Box1BBox2C, E
4Box2C
5Box1D
6Box2E
7
Work
Cell Formulas
RangeFormula
D2:D3D2=UNIQUE(A2:A6)
E2:E3E2=TEXTJOIN(", ",,FILTER(B2:B6,A2:A6=D2))
Dynamic array formulas.
Thank you! That does the trick! I'll have to get more familiar with the TextJoin and Filter statements!
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,657
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,129,762
Messages
5,638,207
Members
417,014
Latest member
dualwieldbacon

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top