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>
;;;;;;VIC;
;;;;;;VIC;
;;;;SA;;;
;;;;;;VIC;
;;;;;;VIC;
;;;;;;VIC;
;NSW;NT;QLD;SA;TAS;VIC;WA
;;;;;;VIC;
;;;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
NSW;NT;QLD;SA;TAS;VIC;WA
VIC
QLD
NSW;VIC
NSW;TAS:VIC

<tbody>
</tbody>
Thanks in advance,
Kevin

<tbody>
</tbody>
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

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,215,529
Messages
6,125,345
Members
449,220
Latest member
Edwin_SVRZ

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