I am trying to copy all strings between 2 characters "; " and " . " in respective rows as in the below example.
I found the below vba from VBA - Remove text between given 2 characters in string
Sub RemoveDashToComma()
Columns("A:B").Replace ";*.", ",", xlPart
End Sub
I am looking for something very simple like this.
25.xlsm | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | sl | Input | output1 | output2 | ||
2 | 11 | jones; smith. Lisa jones; festive discount. Lisa. | ; smith; festive discount | jones. Lisa jones. Lisa. | ||
3 | ||||||
4 | ||||||
5 | 2 | jones; Light. Lisa jones; festive lucky discount 20p. Lisa. jones; Light. Lisa jones; festive lucky discount 20p. Lisa. | ; Light; festive lucky discount 20p; Light; festive lucky discount 20p | jones. Lisa jones. Lisa. jones. Lisa jones. Lisa. | ||
SheetA |
I found the below vba from VBA - Remove text between given 2 characters in string
Sub RemoveDashToComma()
Columns("A:B").Replace ";*.", ",", xlPart
End Sub
I am looking for something very simple like this.