Split text string with characters

max_max

Board Regular
Joined
Jun 29, 2013
Messages
58
Hello to all,
How can I divide this string of texts:

minimo maggiore, via gallo 788 - san giovanni giovanni, 88018 / brindisi
or
minimo maggiore, via gallo 788, san giovanni giovanni, 88018, brindisi

in 5 colums without using function text in columns?
max_max
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
With the data in A1

in B1
=SUBSTITUTE(SUBSTITUTE(A1," -",",")," /",",")

in C1
=TRIM(MID(SUBSTITUTE($B1,",",REPT(" ",LEN($B1))),(COLUMNS($B1:B1)-1)*(LEN($B1))+1,LEN($B1)))
copy the formula in C1 across the row

Now copy ALL the formulas in row 1 down for as many rows of data you have
 
Upvote 0
Hi special-k99,
it's o.k..
I added a new character :

minimo maggiore, via gallo 788 - san giovanni giovanni : 88018 / brindisi

I have updated this formula as follows:

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2," -",",")," /",","),":",",")

it's right?
Up to how many SUBSTITUTES you can add to the formula?
Thank you so much.
Does the formula work on excel 2003?
max_max
 
Upvote 0
Up to how many SUBSTITUTES you can add to the formula?

Does the formula work on excel 2003?
You can add as many SUBSTITUTEs as you like
Actually there are limits

In more recent versions of Excel you can nest such functions for 64 levels (but hopefully you never actually do that!)

In Excel 2003, that you asked specifically about, you can only have 7 levels of nesting. That is, the original SUBSTITUTE() and 7 more around that.
 
Upvote 0
Well, yes there are limits but I dont expect he will reach them, or if he does he could create a second cell with further SUBSITUTEs.
I dont have Excel 2003.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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