Value in column B corresponding to column A listed in column c separated by a comma

kac1125

Board Regular
Joined
Jul 31, 2014
Messages
77
Office Version
  1. 365
Platform
  1. Windows
Looking to list out all values for Column B that correspond to column A listed out in Column C at change in value of column A separated by a comma
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[/TR]
[TR]
[TD]100001[/TD]
[TD]35[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]100001[/TD]
[TD]64[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]100001[/TD]
[TD]45[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]100002[/TD]
[TD]64[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]100002[/TD]
[TD]72[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]100002[/TD]
[TD]74[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]100002[/TD]
[TD]68[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]100002[/TD]
[TD]59[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So I would need For C3 i would need it to read 35,64,45 and C8 to read 64,72,74,68,59

Please let me know if you have any suggestions
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Code:
=IF(A1<>A2,B2,C1&", "&B2)
This formula entered in cell C2 will give an output like this:

[TABLE="width: 361"]
<tbody>[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]Column A[/TD]
[TD="align: center"]Column B[/TD]
[TD="align: center"]Column C[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]100001[/TD]
[TD="align: center"]35[/TD]
[TD="align: center"]35[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]100001[/TD]
[TD="align: center"]64[/TD]
[TD="align: center"]35, 64[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]100001[/TD]
[TD="align: center"]45[/TD]
[TD="align: center"]35, 64, 45[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]100002[/TD]
[TD="align: center"]64[/TD]
[TD="align: center"]64[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: center"]100002[/TD]
[TD="align: center"]72[/TD]
[TD="align: center"]64, 72[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: center"]100002[/TD]
[TD="align: center"]74[/TD]
[TD="align: center"]64, 72, 74[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]100002[/TD]
[TD="align: center"]68[/TD]
[TD="align: center"]64, 72, 74, 68[/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: center"]100002[/TD]
[TD="align: center"]59[/TD]
[TD="align: center"]64, 72, 74, 68, 59[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Thank you so much! This is exactly what I was looking for!
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

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