ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Space between words (https://www.excelbanter.com/excel-discussion-misc-queries/150362-space-between-words.html)

Fravo

Space between words
 
Hi,

I have a column that has strings with spaces. I need a formula that
when it finds a space, excel put it in a new column.
It looks like this:
Green Apple
White Car
Black Cloth

and it should be:
Green
Apple
White
Car
Black
Cloth

I need to substitute space for a line break.

I've already tried a lot of things, but with no sucess... i`m thinking
in export this into a txt file and make a perl script to do what i
need. but i think excel should do this and I don't know how.

Thx


Dave Peterson

Space between words
 
Instead of a formula, you may want to select the column
data|text to columns
delimited by space
and finish up.



Fravo wrote:

Hi,

I have a column that has strings with spaces. I need a formula that
when it finds a space, excel put it in a new column.
It looks like this:
Green Apple
White Car
Black Cloth

and it should be:
Green
Apple
White
Car
Black
Cloth

I need to substitute space for a line break.

I've already tried a lot of things, but with no sucess... i`m thinking
in export this into a txt file and make a perl script to do what i
need. but i think excel should do this and I don't know how.

Thx


--

Dave Peterson

Dave Peterson

Space between words
 
And data|text to columns will put the values in different columns. That does
what you describe--but not what you show in your example.

Fravo wrote:

Hi,

I have a column that has strings with spaces. I need a formula that
when it finds a space, excel put it in a new column.
It looks like this:
Green Apple
White Car
Black Cloth

and it should be:
Green
Apple
White
Car
Black
Cloth

I need to substitute space for a line break.

I've already tried a lot of things, but with no sucess... i`m thinking
in export this into a txt file and make a perl script to do what i
need. but i think excel should do this and I don't know how.

Thx


--

Dave Peterson

MartinW

Space between words
 
Hi Fravo,

Sounds like EditReplace might help here.

Select your data
Go to EditReplace
Find what: space
Replace with: Alt+010
Click Replace all
OK out

HTH
Martin



"Fravo" wrote in message
ps.com...
Hi,

I have a column that has strings with spaces. I need a formula that
when it finds a space, excel put it in a new column.
It looks like this:
Green Apple
White Car
Black Cloth

and it should be:
Green
Apple
White
Car
Black
Cloth

I need to substitute space for a line break.

I've already tried a lot of things, but with no sucess... i`m thinking
in export this into a txt file and make a perl script to do what i
need. but i think excel should do this and I don't know how.

Thx





All times are GMT +1. The time now is 01:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com