split text in one cell into multiple cells without breaking the wo

G

Guest

I have got a data in a column which i want to split in multiple columns with
characters lenght fix and no word should i.e. in case the word in getting
split in two columns due to character length then the complete word should go
in the next column.

Sample:
AL.WAHAT FOR TRDG & MFG OF CHEMICALS & FERTILIZERS AL.WAHAT FOR TRDG & MFG
OF CHEMICAL S & FERTILIZERS

this is what output i am getting using Mid function. The 35 characters are
fixed in column no. 2, 25 characters in column no. 3 and 35 characters in
cloumn no.4
 
J

Jim Cone

Try using "Text to Columns" on the Data menu.

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


I have got a data in a column which i want to split in multiple columns with
characters lenght fix and no word should i.e. in case the word in getting
split in two columns due to character length then the complete word should go
in the next column.

Sample:
AL.WAHAT FOR TRDG & MFG OF CHEMICALS & FERTILIZERS
AL.WAHAT FOR TRDG & MFG OF CHEMICAL S & FERTILIZERS

this is what output i am getting using Mid function. The 35 characters are
fixed in column no. 2, 25 characters in column no. 3 and 35 characters in
cloumn no.4
 
G

Guest

I tried using Text to column function but it is not giving me the desired
result.
 
K

Krishnakumar

Hi Prashant,

Try,

In B1,

=LEFT(A1,LOOKUP(9.999E+307,FIND(" ",A1,ROW($A1:$A35))))

In C1,

=TRIM(LEFT(SUBSTITUTE(A1,B1,""),LOOKUP(9.999E+307,FIND("
",TRIM(SUBSTITUTE(A1,B1,""))&" ",ROW($A1:A25)))))

In D1,

=TRIM(SUBSTITUTE(SUBSTITUTE(A1,B1,""),C1,""))

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top