Macro to search multiple values corresponding to another one and concatenate them in a different column

scruffy89

New Member
Joined
May 27, 2015
Messages
6
Hello everyone! I am new to excel so I kinda need some help.
I have 3 columns A , b and C which look something like this: (only there are a lot more values)

A B C
Band1 Song1 Band1
Band1 Song2 Band2
Band2 Song3 Band3
Band1 Song4
Band3 Song5
Band2 Song6
Band3 Song7

I need another column D with all the songs coresponding to a band; I want the sheet to look like this:

A B C D
Band1 Song1 Band1 Song1 Song2 song4
Band1 Song2 Band2 Song3 Song6
Band2 Song3 Band3 Song5 Song7
Band1 Song4
Band3 Song5
Band2 Song6
Band3 Song7

Is it possible to do this with a macro?:confused: Manual work would take a few days:mad:
 
Last edited:
Thanks Alan!.....

. Yous welcome

.....'ll look at the formulas too, but I think I'll stick with the macro.

.. I tend to agree, those CSE Formulas are giving me a few headaches just now... You need a high level of confidence and experience with them which I do not have . They appear sometimes to be a lot more difficult to “get into” than a VBA code,. – I think you can try and debug better with VBA should anything go wrong.
. But possibly it is just down to experience,

Alan
 
Upvote 0

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,214,379
Messages
6,119,190
Members
448,874
Latest member
Lancelots

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