Splitting out Data

Iain Munro

New Member
Joined
Aug 29, 2020
Messages
12
Office Version
  1. 365
Platform
  1. MacOS
Morning

I have data in the following format

1 8 1452122 PNNPAAADBEDLAKST Pipe, ASME B36.10M, Type E, BE, ASTM A53 Gr. B, 1.6' Sch. STD
2 8X6 1462879 BNRCABXXBEAGALST Conc. Red, ASME B16.9, BE, ASTM A234 Gr. WPB-W, 1 Sch. STD
11 3/4 704258 LNSBABXXAAX5ABAA Stud Bolt, ASME-B18.31.2, ASTM A193 Gr. B7, Thd. 24

The first digits is the item which can be either 1 or 2 characters.
The second set is the size, so can be up 4 characters.
The this is the same size
The fourth is the same size
The last needs to be all together - after the fourth space

I can pull out the last piece no issue using =MID(A6,FIND("*", SUBSTITUTE(A6," ","*",4))+1,60), but making sure the first and second are correct is my challenge.

Ideally, I need 5 columns each with their own data.

Any help would be appreciated.

TIA

 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
MrExcelPlayground22.xlsx
ABCDEF
251 8 1452122 PNNPAAADBEDLAKST Pipe, ASME B36.10M, Type E, BE, ASTM A53 Gr. B, 1.6' Sch. STD181452122PNNPAAADBEDLAKSTPipe, ASME B36.10M, Type E, BE, ASTM A53 Gr. B, 1.6' Sch. STD
262 8X6 1462879 BNRCABXXBEAGALST Conc. Red, ASME B16.9, BE, ASTM A234 Gr. WPB-W, 1 Sch. STD28X61462879BNRCABXXBEAGALSTConc. Red, ASME B16.9, BE, ASTM A234 Gr. WPB-W, 1 Sch. STD
2711 3/4 704258 LNSBABXXAAX5ABAA Stud Bolt, ASME-B18.31.2, ASTM A193 Gr. B7, Thd. 24113/4704258LNSBABXXAAX5ABAAStud Bolt, ASME-B18.31.2, ASTM A193 Gr. B7, Thd. 24
Sheet22
Cell Formulas
RangeFormula
B25:F27B25=LET(a,TEXTSPLIT(A25," "),aa,TAKE(a,,4),b,DROP(a,,4),c,TEXTJOIN(" ",TRUE,b),HSTACK(aa,c))
Dynamic array formulas.
 
Upvote 1
You can try :
Excel Formula:
=HSTACK(TAKE(TEXTSPLIT(A6," "),,4),MID(A6,FIND("*", SUBSTITUTE(A6," ","*",4))+1,60))
 
Upvote 1
Solution
MrExcelPlayground22.xlsx
ABCDEF
251 8 1452122 PNNPAAADBEDLAKST Pipe, ASME B36.10M, Type E, BE, ASTM A53 Gr. B, 1.6' Sch. STD181452122PNNPAAADBEDLAKSTPipe, ASME B36.10M, Type E, BE, ASTM A53 Gr. B, 1.6' Sch. STD
262 8X6 1462879 BNRCABXXBEAGALST Conc. Red, ASME B16.9, BE, ASTM A234 Gr. WPB-W, 1 Sch. STD28X61462879BNRCABXXBEAGALSTConc. Red, ASME B16.9, BE, ASTM A234 Gr. WPB-W, 1 Sch. STD
2711 3/4 704258 LNSBABXXAAX5ABAA Stud Bolt, ASME-B18.31.2, ASTM A193 Gr. B7, Thd. 24113/4704258LNSBABXXAAX5ABAAStud Bolt, ASME-B18.31.2, ASTM A193 Gr. B7, Thd. 24
Sheet22
Cell Formulas
RangeFormula
B25:F27B25=LET(a,TEXTSPLIT(A25," "),aa,TAKE(a,,4),b,DROP(a,,4),c,TEXTJOIN(" ",TRUE,b),HSTACK(aa,c))
Dynamic array formulas.
worked perfectly - many thanks
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,274
Members
452,628
Latest member
dd2

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