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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,216,471
Messages
6,130,822
Members
449,595
Latest member
jhester2010

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