Excel - Parsing Data

santa12345

Board Regular
Joined
Dec 2, 2020
Messages
66
Office Version
  1. 365
Platform
  1. Windows
Hi .
I am trying to parse the following.

1620329111561.png


Column H is my source that I am trying to parse. Part Description
Column I is the first sub part (always starting on the left hand side and continuing until the first space in the text) various lengths and various starting text (HKL vs E, etc..)
Column J is the second sub part (always starting after the first space) various lengths and various starting text
Column K is the third sub part (if there is one...always starting after the second space) various lengths and various starting text
Column L is the 4th sub part (always at the end of the text in Column H) this will always start with TL

I tried using Mid function but the first, second and 3rd sub parts may start with different text letters so not sure if a formula be written based on the spaces possibly ?
Thanks again.
 

Attachments

  • 1620328765273.png
    1620328765273.png
    17.6 KB · Views: 8

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Please use XL2BB to display your sample data so that anyone trying to help doesn't have to type your data.
 
Upvote 0
This is based on the submitted data:

MrExcel Tests 2021.xlsm
HIJKL
1Part descriptionSub Part 1Sub Part 2Sub Part 3Sub Part 4
2HKL38 SSPN38-23.40 labeled with TL.323.1HKL38SSPN38-23.40 TL.323.1
3E121H-4 AAPN12-13.65 HF375T-30.20 labeled with TL.319.2E121H-4AAPN12-13.65HF375T-30.20TL.319.2
4HKL75S SSPN34-17.30 labeled with TL.301.6HKL75SSSPN34-17.30 TL.301.6
5E121H-4 CCPN12-13.65 AA375T-32.55 labeled with TL.200.1E121H-4CCPN12-13.65AA375T-32.55TL.200.1
Sheet1
Cell Formulas
RangeFormula
I2:I5I2=LEFT(H2,FIND(" ",H2)-1)
J2:J5J2=LEFT(RIGHT(H2,LEN(H2)-LEN(I2)-1),FIND(" ",RIGHT(H2,LEN(H2)-LEN(I2)-1))-1)
K2:K5K2=TRIM(SUBSTITUTE(MID(H2,LEN(I2&J2)+3,LEN(H2)-LEN(I2&J2&L2)-3),"labeled with",""))
L2:L5L2=RIGHT(H2,LEN(H2)-FIND(" TL.",H2))
 
Upvote 0

Forum statistics

Threads
1,214,622
Messages
6,120,576
Members
448,972
Latest member
Shantanu2024

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