![]() |
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 |
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 |
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 |
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 |
All times are GMT +1. The time now is 08:36 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com