Concatenate multiple unique values with same source value

Guitarmageddon

Board Regular
Joined
Dec 22, 2014
Messages
159
hello everyone, tried doing with dax and regular excel methods but scratching my head

here is a table example. the "style" number is repeated because there are multiple vendors that source the product. i simply want to concatenate each of the vendor names together separated by a comma. how would I do this?

for example, the first style, (ending in 715) would concatenate "service command , s c johnson & son inc"


STYLEVENDOR NUM
VENDOR NAME
Vendor Style
0000000033371500001707694SERVICE COMMAND
333715
0000000033371500006091417S C JOHNSON & SON INC
333715
0032247438544100147491195SCOTTS MIRACLE GRO CO(BAG GDS)4385404
0046500711107100001707694SERVICE COMMAND
71110
0046500711107100006091417S C JOHNSON & SON INC71110
0046500711114100001707694SERVICE COMMAND
7693098
0046500718489100001707694SERVICE COMMAND
71848
0046500718489100006091417S C JOHNSON & SON INC71848
<colgroup><col width="107" style="width: 80pt; mso-width-source: userset; mso-width-alt: 3913;"> <col width="81" style="width: 61pt; mso-width-source: userset; mso-width-alt: 2962;"> <col width="229" style="width: 172pt; mso-width-source: userset; mso-width-alt: 8374;"> <col width="113" style="width: 85pt; mso-width-source: userset; mso-width-alt: 4132;"> <tbody> </tbody>
 

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"
Hi,

Which version of excel do you use?
What do you want, formula, or VBA code?
 
Upvote 0
Hi,

Which version of excel do you use?
What do you want, formula, or VBA code?

Hello! 2016... VBA could work fine. In the future, Id like it to be flexible where I may run into the same situation, but just with different parent column names, but you get the concept. Also, there are a few occurences in the data set that are more than 2 vendor names for a style, if that matters
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
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