VBA: Concatenate data with and without symbol from respective rows

uglyphoto

New Member
Joined
Jul 24, 2017
Messages
11
I have data with symbols like "|" and "~" and ":" from H to say N column.
With VBA (using switch statement) get,
In Column B and C: Concatenate data with and without "|" from respective rows
In Column D and E: Concatenate data with and without "~" from respective rows
In Column F and G: Concatenate data with and without ":" from respective rows

Excel 2010
ABCDEFGHIJKLMN
1
21Get data with |Get data without |Get data with ~Get data without ~Get data with colonGet data without colondata1data2data3data4data5data6data7
32 | 1 # ~1 a; : ~1 1 # a; : | : 1 # ~1 a; |1#~1a;:|
43 1 4 0:01 (b:a) # 1 4 0:01 (b:a) # 0:1 (b:a) 1 4 #140:01(b:a)#
54 x| x| x| x| x| x|x|x|
65 5 a 5 a 5 a5a

<tbody>
</tbody>
Sheetprofit
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,214,945
Messages
6,122,393
Members
449,081
Latest member
JAMES KECULAH

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