Excel - Parsing Data

santa12345

Board Regular
Joined
Dec 2, 2020
Messages
70
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: 10

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

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