Need help in Text To Column

Svk2005

New Member
Joined
May 6, 2020
Messages
2
Office Version
  1. 2007
Platform
  1. Windows
  2. Mobile
Cell A1 value = “ABC VIN DIESEL 1223 XYZ Robert Mannkor 665435 ABC JK PATEL 785589 XYZ Tom Cruise....”

the single cell contains huge lines of text data and I want to the text on this cell to be converted into columns

the excel has to do the following
1) the keywords are ABC and XYZ
2) Any number of words that suffice this keywords UNTIL next keyword should get into new rows
for example
ABC VIN DIESEL 1223
XYZ Robert Mannkor 665435
ABC JK PATEL 785589

Any help is greatly appreciated! ?
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Book1
B
14Data
15ABC VIN DIESEL 1223 XYZ Robert Mannkor 665435 ABC JK PATEL 785589 XYZ Tom Cruise
16
17 
18VIN DIESEL 1223
19Robert Mannkor 665435
20JK PATEL 785589
21Tom Cruise
Sheet2
Cell Formulas
RangeFormula
B17:B26B17=TRIM(MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(Table1[Data],"ABC "," | "),"XYZ "," | ")," | ",REPT(" ",LEN(Table1[Data]))),(ROW(1:10)-1)*LEN(Table1[Data])+1,LEN(Table1[Data])))
Dynamic array formulas.
 
Upvote 0
It will work with only two Identification "ABC" & "XYZ" if you have other delimiters use Substitute function more times
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,332
Members
449,077
Latest member
jmsotelo

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