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

kac1125

Board Regular
Joined
Jul 31, 2014
Messages
71
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
Column AColumn BColumn C
10000135
10000164
10000145
10000264
10000272
10000274
10000268
10000259

<tbody>
</tbody>
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

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Code:
=IF(A1<>A2,B2,C1&", "&B2)
This formula entered in cell C2 will give an output like this:

1Column AColumn BColumn C
21000013535
31000016435, 64
41000014535, 64, 45
51000026464
61000027264, 72
71000027464, 72, 74
81000026864, 72, 74, 68
91000025964, 72, 74, 68, 59

<tbody>
</tbody>
 
Upvote 0
Thank you so much! This is exactly what I was looking for!
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,748
Members
448,989
Latest member
mariah3

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