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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
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.
 
Upvote 0
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!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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
Back
Top