Consolidate Duplicate Cells in Column A and output products associated in Column B Horizontally

dkmusf

New Member
Joined
Sep 19, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi There,

Looking for a formula that will consolidate column A with the products in Column B into a horizontal line that I can drag down in column C that will output in the Desired Output.

Initial Data
Data-11Product1
Data-11Product2
Data-12Product3
Data-12Product3
Data-12Product4

Desired Output for Column C
Data-11Product1Product2
Data-12Product3Product4

Thanks,
Donny
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
MrExcelPlayground12.xlsx
ABCDEFGHI
1Data-11Product1Data-11Product1Product2
2Data-11Product2Data-12Product3Product4
3Data-12Product3
4Data-12Product3
5Data-12Product4
Sheet1
Cell Formulas
RangeFormula
G1:G2G1=UNIQUE(A1:A5)
H1:I2H1=TRANSPOSE(UNIQUE(FILTER($B$1:$B$5,$A$1:$A$5=G1)))
Dynamic array formulas.
 
Upvote 0
Another option is you have the new functions like VSTACK.
Fluff.xlsm
ABCDEFG
1
2Data-11Product1Data-11Product1Product2
3Data-11Product2Data-12Product3Product3Product4
4Data-12Product3
5Data-12Product3
6Data-12Product4
7
Data
Cell Formulas
RangeFormula
C2:F3C2=IFNA(DROP(REDUCE("",UNIQUE(FILTER(A2:A100,A2:A100<>"")),LAMBDA(a,b,VSTACK(a,HSTACK(b,TRANSPOSE(FILTER(B2:B100,A2:A100=b)))))),1),"")
Dynamic array formulas.
 
Upvote 0
Thank you JamesCanale and Fluff for such a quick response and different ways to output the results. It has been years since I have been back to MrExcel...late 90s. You were the first to pop into my mind to figure out this excel formula.

Cheers!!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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