Consolidating rows in one column

bpsp

New Member
Joined
Jan 30, 2020
Messages
1
Office Version
  1. 2013
Platform
  1. Windows
Here is my data



External first nameexternal last namerelationshipInternal name
JohnSmithleaderSara Jones
JohnSmithleaderJennifer Smith
BobBrownleaderDavid Chan
MichelleAdamleaderNoel David
MichelleAdamleaderAllen Stevens
MichelleAdamleaderJordan Wood
MichelleAdamleaderErin May
MichelleAdamleaderKaren Sinclair



And this is what i want my data to look like:



External first nameexternal last namerelationshipInternal name
JohnSmithleaderSara Jones; Jennifer Smith
BobBrownleaderDavid Chan
MichelleAdamleaderNoel David; Allen Stevens; Jordan Wood; Erin May; Karen Sinclair



Is this possible without manually doing it? data is over 1000 rows long.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Assuming your data starts in A1 and Ends in D9(Picture Example), and also assuming that you have the new dynamic array functions, Type "=UNIQUE(A2:D9)" in a cell with nothing surrounding it

Update, Just realized you want your last column to be concatenated. This will not do that.
 
Upvote 0
with Power Query (add-in for XL2013)
Code:
// Table1
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    Group = Table.Group(Source, {"External first name", "external last name", "relationship"}, {{"Count", each _, type table}}),
    List = Table.AddColumn(Group, "Internal name", each List.Distinct(Table.Column([Count],"Internal name"))),
    Result = Table.TransformColumns(List, {"Internal name", each Text.Combine(List.Transform(_, Text.From), "; "), type text})
in
    Result
cons.png
 
Upvote 0
Cross posted

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,698
Members
448,979
Latest member
DET4492

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