Splitting the text into column

Raph85

New Member
Joined
Dec 20, 2015
Messages
26
Hello,

I have data that to be split into each different column, however the problem is if I split it using the text to column method it will split every single words to space (column) and I can do it with the fixed width either because it's different width.

How do i attach the file to show what I mean here ?

Thank you.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi,

You can also just post a few (not one) samples of your data (all possible variations) here.
 
Upvote 0
Hi Guys,

Thank you for the reply. Please find the sample as per below and I hope, it works:

[TABLE="width: 568"]
<tbody>[TR]
[TD="colspan: 6"]Last Name/First Title Name Confirmation# Company Name Member Status [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="colspan: 6"]Smith/Rony 2454843675 Google Gold [/TD]
[/TR]
[TR]
[TD="colspan: 6"]Gaylord/John 2467917946 Silver [/TD]
[/TR]
[TR]
[TD="colspan: 6"]Heathrow/Jenny Ms 2365974598 [/TD]
[/TR]
[TR]
[TD="colspan: 6"]Jeans/Jenny 6659878854 Apple Store [/TD]
[/TR]
[TR]
[TD="colspan: 6"]Mirka/Sean 6598457832 Black [/TD]
[/TR]
[TR]
[TD="colspan: 6"]Dean/Kim 6598781245 IBM Blue [/TD]
[/TR]
[TR]
[TD="colspan: 6"]Di Silva/ Anthonio 9878456589 Silver [/TD]
[/TR]
[TR]
[TD="colspan: 6"]La Belle/Marie 1245987865 Lo Lo Hoop Pty Ltd Blue [/TD]
[/TR]
[TR]
[TD="colspan: 6"]Hillsgrove/Dorian 2356457889 La Mere De La Cruze [/TD]
[/TR]
[TR]
[TD="colspan: 6"]Brock/Joe Mr 9878456589 Gold[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Need to be split into each column as per below[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Last Name [/TD]
[TD]First Name [/TD]
[TD]Title [/TD]
[TD]Confirmation #[/TD]
[TD]Company Name[/TD]
[TD]Member Status [/TD]
[/TR]
[TR]
[TD]Smith[/TD]
[TD]Rony [/TD]
[TD] [/TD]
[TD="align: right"]2454843675[/TD]
[TD]Google [/TD]
[TD]Gold [/TD]
[/TR]
[TR]
[TD]Gaylord[/TD]
[TD]John[/TD]
[TD] [/TD]
[TD="align: right"]2467917946[/TD]
[TD] [/TD]
[TD]Silver[/TD]
[/TR]
[TR]
[TD]Heathrow[/TD]
[TD]Jenny[/TD]
[TD]Ms[/TD]
[TD="align: right"]2365974598[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Jeans[/TD]
[TD]Jenny[/TD]
[TD] [/TD]
[TD="align: right"]6659878854[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Mirka[/TD]
[TD]Sean[/TD]
[TD] [/TD]
[TD="align: right"]6598457832[/TD]
[TD] [/TD]
[TD]Black[/TD]
[/TR]
[TR]
[TD]Dean[/TD]
[TD]Kim[/TD]
[TD] [/TD]
[TD="align: right"]6598781245[/TD]
[TD]IBM[/TD]
[TD]Blue [/TD]
[/TR]
[TR]
[TD]Di Silva[/TD]
[TD]Anthonio [/TD]
[TD] [/TD]
[TD="align: right"]9878456589[/TD]
[TD] [/TD]
[TD]Silver[/TD]
[/TR]
[TR]
[TD]La Belle[/TD]
[TD]Marie[/TD]
[TD] [/TD]
[TD="align: right"]1245987865[/TD]
[TD]Lo Lo Hoop Pty Ltd [/TD]
[TD]Blue [/TD]
[/TR]
[TR]
[TD]Hillsgrove[/TD]
[TD]Dorian [/TD]
[TD] [/TD]
[TD="align: right"]2356457889[/TD]
[TD]La Mere De La Cruze[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Brock [/TD]
[TD]Joe[/TD]
[TD]Mr[/TD]
[TD="align: right"]9878456589[/TD]
[TD] [/TD]
[TD]Gold[/TD]
[/TR]
</tbody><colgroup><col><col span="2"><col><col><col></colgroup>[/TABLE]
 
Upvote 0
Since your data is Not "Uniform" in content, each Column will require it's own formula:


Book1
ABCDEFG
1Last NameFirst NameTitleConfirmationCompany NameMember Status
2Smith/Rony 2454843675 Google GoldSmithRony 2454843675GoogleGold
3Gaylord/John 2467917946 SilverGaylordJohn2467917946Silver
4Heathrow/Jenny Ms 2365974598HeathrowJennyMs2365974598
5Jeans/Jenny 6659878854 Apple StoreJeansJenny6659878854Apple Store
6Mirka/Sean 6598457832 BlackMirkaSean6598457832Black
7Dean/Kim 6598781245 IBM BlueDeanKim6598781245IBMBlue
8Di Silva/ Anthonio 9878456589 SilverDi SilvaAnthonio9878456589Silver
9La Belle/Marie 1245987865 Lo Lo Hoop Pty Ltd BlueLa BelleMarie1245987865Lo Lo Hoop Pty LtdBlue
10Hillsgrove/Dorian 2356457889 La Mere De La CruzeHillsgroveDorian2356457889La Mere De La Cruze
11Brock/Joe Mr 9878456589 GoldBrockJoeMr9878456589Gold
Sheet95
Cell Formulas
RangeFormula
B2=LEFT(A2,FIND("/",A2)-1)
C2=TRIM(MID(A2,FIND("/",A2)+1,FIND(" ",TRIM(MID(A2,FIND("/",A2)+1,255)))))
D2=TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(LEFT(A2,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A2&"0123456789"))-1),"/ ",""),"/",""),B2&C2,""))
E2=MID(A2,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A2&"0123456789")),10)
F2=TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(MID(A2,FIND(E2,A2)+10,255),"Gold",""),"Silver",""),"Black",""),"Blue",""))
G2=TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"/ ",""),"/",""),B2&C2,""),D2,""),E2,""),F2,""))


B2:G2 formulas copied down.
 
Upvote 0

Forum statistics

Threads
1,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

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