Removing semi-columns in front of, at the end of and between text

kkuo155

New Member
Joined
Mar 29, 2016
Messages
3
Hey guys,

I've been pulling my hair and trying to work this out, I was wondering if there's a formula that would allow me to remove the extra semi-columns, see data below:

<style type="text/css"><!--br {mso-data-placement:same-cell;}--></style>[TABLE="width: 0"]
<tbody>[TR]
[TD];;;;;;VIC;[/TD]
[/TR]
[TR]
[TD];;;;;;VIC;[/TD]
[/TR]
[TR]
[TD];;;;SA;;;[/TD]
[/TR]
[TR]
[TD];;;;;;VIC;[/TD]
[/TR]
[TR]
[TD];;;;;;VIC;[/TD]
[/TR]
[TR]
[TD];;;;;;VIC;[/TD]
[/TR]
[TR]
[TD];NSW;NT;QLD;SA;TAS;VIC;WA[/TD]
[/TR]
[TR]
[TD];;;;;;VIC;[/TD]
[/TR]
[TR]
[TD];;;QLD;;;;
<style type="text/css"><!--br {mso-data-placement:same-cell;}--></style>;NSW;;;;;VIC;
<style type="text/css"><!--br {mso-data-placement:same-cell;}--></style>;NSW;;;;TAS;VIC;

How it should appear:
VIC
VIC
SA
VIC
VIC
VIC
[TABLE="width: 0"]
<tbody>[TR]
[TD]NSW;NT;QLD;SA;TAS;VIC;WA
VIC
QLD
NSW;VIC
NSW;TAS:VIC[/TD]
[/TR]
[TR]
[/TR]
</tbody>[/TABLE]
Thanks in advance,
Kevin
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Excel 2010
AB
1;;;;;;VIC;VIC
2;;;;;;VIC;VIC
3;;;;SA;;;SA
4;;;;;;VIC;VIC
5;;;;;;VIC;VIC
6;;;;;;VIC;VIC
7;NSW;NT;QLD;SA;TAS;VIC;WANSW;NT;QLD;SA;TAS;VIC;WA
8;;;;;;VIC;VIC
9;;;QLD;;;;QLD
10;NSW;;;;;VIC;NSW;VIC
11;NSW;;;;TAS;VIC;NSW;TAS;VIC
Sheet15
Cell Formulas
RangeFormula
B1=SUBSTITUTE(TRIM(SUBSTITUTE(A1,";"," "))," ",";")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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