Concatenate text based on criteria with comma separated

Status
Not open for further replies.

andersen_yunan

New Member
Joined
Feb 7, 2018
Messages
36
Hi, I got this raw data that shows list of people who do delivery packages in a month

[TABLE="class: cms_table, width: 704"]
<tbody>[TR]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 64, bgcolor: #000000"]MON-1[/TD]
[TD="width: 64, bgcolor: #000000"]TUES-1[/TD]
[TD="width: 64, bgcolor: #000000"]WED-1[/TD]
[TD="width: 64, bgcolor: #000000"]THURS-1[/TD]
[TD="width: 64, bgcolor: #000000"]FRI-1[/TD]
[TD="width: 64, bgcolor: #000000"]SAT-1[/TD]
[TD="width: 64, bgcolor: #000000"]MON-2[/TD]
[TD="width: 64, bgcolor: #000000"]TUES-2[/TD]
[TD="width: 64, bgcolor: #000000"]WED-2[/TD]
[TD="width: 64, bgcolor: #000000"]THURS-2[/TD]
[/TR]
[TR]
[TD="bgcolor: #000000"]Andrew[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]12,00[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]12,00[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]12,00[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: #000000"]Ashely[/TD]
[TD="bgcolor: transparent"]12,00[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]11,00[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]12,00[/TD]
[/TR]
[TR]
[TD="bgcolor: #000000"]Alan[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]12,00[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]12,00[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]12,00[/TD]
[TD="bgcolor: transparent"]12,00[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: #000000"]Billy[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]12,00[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: #000000"]Charlie[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]12,00[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]12,00[/TD]
[TD="bgcolor: transparent"]12,00[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: #000000"]William[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]12,00[/TD]
[TD="bgcolor: transparent"]12,00[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: #000000"]Wilbert[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]12,00[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]


and I want to make a summary data that would show people with their delivery day like this

[TABLE="class: cms_table, width: 128"]
<tbody>[TR]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 64, bgcolor: transparent"]Visit Day[/TD]
[/TR]
[TR]
[TD="bgcolor: #000000"]Andrew[/TD]
[TD="bgcolor: transparent"]TUES-1,THURS-1,MON-2[/TD]
[/TR]
[TR]
[TD="bgcolor: #000000"]Ashely[/TD]
[TD="bgcolor: transparent"]MON-1,WED-1,THURS-2[/TD]
[/TR]
[TR]
[TD="bgcolor: #000000"]Alan[/TD]
[TD="bgcolor: transparent"]TUES-1,FRI-1,TUES-2,WED-2[/TD]
[/TR]
[TR]
[TD="bgcolor: #000000"]Billy[/TD]
[TD="bgcolor: transparent"]SAT-1[/TD]
[/TR]
[TR]
[TD="bgcolor: #000000"]Charlie[/TD]
[TD="bgcolor: transparent"]TUES-1,TUES-2,WED-2[/TD]
[/TR]
[TR]
[TD="bgcolor: #000000"]William[/TD]
[TD="bgcolor: transparent"]WED-1,THURS-1[/TD]
[/TR]
[TR]
[TD="bgcolor: #000000"]Wilbert[/TD]
[TD="bgcolor: transparent"]MON-2[/TD]
[/TR]
</tbody>[/TABLE]


Is there any formula that I could use to have result like this?
Any help would be appreciated. Thanks in advance!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Status
Not open for further replies.

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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