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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

VBE313

Well-known Member
Joined
Mar 22, 2019
Messages
686
Office Version
  1. 365
Platform
  1. Windows
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.
 

sandy666

Banned - Rules violations
Joined
Oct 24, 2015
Messages
7,497
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
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
67,826
Office Version
  1. 365
Platform
  1. Windows
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.
 
Learn Excel from Bill Jelen

Understanding data is crucial, and the easiest place to start is with Microsoft Excel.

Forum statistics

Threads
1,151,579
Messages
5,765,208
Members
425,265
Latest member
bishopc22

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