Consolidating text (Concatenate?)

northw

New Member
Joined
Jun 3, 2021
Messages
9
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
  2. MacOS
Hello,
I've just not been able to find a solution to this.. I need to create a seperate table merging text based on key (SKU). Please see this example, the table on the left is source. And the one on the right handside is merged text.

Basically it merges text based on SKU (key), and ignores duplicates. Text is then separated by pipe.

How can I achieve this? (Office 365 on Mac, but also has access to Excel on Windows via VM).

Many thanks!

Product CodeColoursSizesSKUColoursSizes
SKU1RedSSKU1Red|YellowS|M|L|XL
SKU1RedMSKU2Blue|RedXS]S|M|L|XL|XXL
SKU1RedL
SKU1YellowS
SKU1YellowM
SKU1YellowL
SKU1YellowXL
SKU2BlueXS
SKU2BlueS
SKU2BlueM
SKU2BlueL
SKU2RedM
SKU2RedL
SKU2RedXL
SKU2RedXXL
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
How about
Fluff.xlsm
ABCDEFG
1Product CodeColoursSizesSKUColoursSizes
2SKU1RedSSKU1Red|YellowS|M|L|XL
3SKU1RedMSKU2Blue|RedXS|S|M|L|XL|XXL
4SKU1RedL
5SKU1YellowS
6SKU1YellowM
7SKU1YellowL
8SKU1YellowXL
9SKU2BlueXS
10SKU2BlueS
11SKU2BlueM
12SKU2BlueL
13SKU2RedM
14SKU2RedL
15SKU2RedXL
16SKU2RedXXL
17
Sheet5
Cell Formulas
RangeFormula
E2:E3E2=UNIQUE(FILTER(A2:A100,A2:A100<>""))
F2:G3F2=TEXTJOIN("|",,UNIQUE(FILTER(B$2:B$100,$A$2:$A$100=$E2)))
Dynamic array formulas.
 
Upvote 0
Solution
Incredible, thank you! Easy when you know - I've spent days trying to figure it out.

Many thanks!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,436
Messages
6,124,869
Members
449,192
Latest member
MoonDancer

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