Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Prashant
 
Posts: n/a
Default split text in one cell into multiple cells without breaking the wo

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jim Cone
 
Posts: n/a
Default split text in one cell into multiple cells without breaking the wo

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

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


"Prashant" wrote in message
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
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Prashant
 
Posts: n/a
Default split text into multiple cells without breaking the word

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

"Jim Cone" wrote:

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

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


"Prashant" wrote in message
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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Krishnakumar
 
Posts: n/a
Default split text in one cell into multiple cells without breaking the wo


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


--
Krishnakumar


------------------------------------------------------------------------
Krishnakumar's Profile: http://www.excelforum.com/member.php...o&userid=20138
View this thread: http://www.excelforum.com/showthread...hreadid=518972

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
copying content of cell automatically to multiple cells PAUL GRAZIDE Excel Worksheet Functions 1 June 4th 05 06:52 PM
breaking text in one cell into two cells Polina Excel Discussion (Misc queries) 3 May 24th 05 11:07 PM
How to make a cell recognize multiple text strings? Tourcat Excel Worksheet Functions 1 February 8th 05 09:29 PM
Combining data (numeric format) in multiple cells into one cell (t GNAC SID Excel Discussion (Misc queries) 2 February 7th 05 05:09 PM
Convert data of cells to any type: Number, Date&Time, Text Kevin Excel Discussion (Misc queries) 0 December 30th 04 07:55 AM


All times are GMT +1. The time now is 10:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"