How can I can I extract this?

Romano_odK

Active Member
Joined
Jun 4, 2020
Messages
380
Office Version
  1. 365
Platform
  1. Windows
Good morning,

I got about 6000 items with sizes in them. In this case I need to extract those sizes to another column. So In case of the first line I need to get '6x2 mm' into a separate column. Is there a way to do this?

Thank you for your time and have a great day.


Artikelen beheren XML 4.02 (beta).xlsm
C
8Vito Glaserfix 111 6x2 mm wit - 10x25 m
9Vito Glaserfix 111 6x2 mm zwart - 10x25 m
10Vito Glaserfix 111 6x3 mm wit - 10x25 m
11Vito Glaserfix 111 6x3 mm zwart - 10x25 m
12Vito Glaserfix 111 6x4 mm wit - 10x25 m
13Vito Glaserfix 111 6x4 mm zwart - 10x25 m
14Vito Glaserfix 111 9x2 mm wit - 10x25 m
15Vito Glaserfix 111 9x2 mm zwart - 10x25 m
16Vito Glaserfix 111 9x3 mm wit - 10x25 m
17Vito Glaserfix 111 9x3 mm zwart - 10x25 m
18Vito Glaserfix 111 9x4 mm wit - 10x25 m
19Vito Glaserfix 111 9x4 mm zwart - 10x25 m
20Vito Glaserfix 111 9x5 mm wit - 10x10 m
21Vito Glaserfix 111 9x5 mm zwart - 10x10 m
22Vito Glaserfix 111 9x6 mm wit - 10x10 m
23Vito Glaserfix 111 9x6 mm zwart - 10x10 m
Items
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C8:C10119Expression=LEN(C8)>60textNO
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
One way:
Book1
AB
1Vito Glaserfix 111 6x2 mm wit - 10x25 m6x2
2Vito Glaserfix 111 6x2 mm zwart - 10x25 m6x2
3Vito Glaserfix 111 6x3 mm wit - 10x25 m6x3
4Vito Glaserfix 111 6x3 mm zwart - 10x25 m6x3
5Vito Glaserfix 111 6x4 mm wit - 10x25 m6x4
6Vito Glaserfix 111 6x4 mm zwart - 10x25 m6x4
7Vito Glaserfix 111 9x2 mm wit - 10x25 m9x2
8Vito Glaserfix 111 9x2 mm zwart - 10x25 m9x2
9Vito Glaserfix 111 9x3 mm wit - 10x25 m9x3
10Vito Glaserfix 111 9x3 mm zwart - 10x25 m9x3
11Vito Glaserfix 111 9x4 mm wit - 10x25 m9x4
12Vito Glaserfix 111 9x4 mm zwart - 10x25 m9x4
13Vito Glaserfix 111 9x5 mm wit - 10x10 m9x5
14Vito Glaserfix 111 9x5 mm zwart - 10x10 m9x5
15Vito Glaserfix 111 9x6 mm wit - 10x10 m9x6
16Vito Glaserfix 111 9x6 mm zwart - 10x10 m9x6
Sheet1
Cell Formulas
RangeFormula
B1:B16B1=LET( ts,TEXTSPLIT(A1," "), TAKE(FILTER(ts,ISNUMBER(--TEXTBEFORE(ts,"x"))),,1) )
 
Upvote 0
Solution
One way:
Book1
AB
1Vito Glaserfix 111 6x2 mm wit - 10x25 m6x2
2Vito Glaserfix 111 6x2 mm zwart - 10x25 m6x2
3Vito Glaserfix 111 6x3 mm wit - 10x25 m6x3
4Vito Glaserfix 111 6x3 mm zwart - 10x25 m6x3
5Vito Glaserfix 111 6x4 mm wit - 10x25 m6x4
6Vito Glaserfix 111 6x4 mm zwart - 10x25 m6x4
7Vito Glaserfix 111 9x2 mm wit - 10x25 m9x2
8Vito Glaserfix 111 9x2 mm zwart - 10x25 m9x2
9Vito Glaserfix 111 9x3 mm wit - 10x25 m9x3
10Vito Glaserfix 111 9x3 mm zwart - 10x25 m9x3
11Vito Glaserfix 111 9x4 mm wit - 10x25 m9x4
12Vito Glaserfix 111 9x4 mm zwart - 10x25 m9x4
13Vito Glaserfix 111 9x5 mm wit - 10x10 m9x5
14Vito Glaserfix 111 9x5 mm zwart - 10x10 m9x5
15Vito Glaserfix 111 9x6 mm wit - 10x10 m9x6
16Vito Glaserfix 111 9x6 mm zwart - 10x10 m9x6
Sheet1
Cell Formulas
RangeFormula
B1:B16B1=LET( ts,TEXTSPLIT(A1," "), TAKE(FILTER(ts,ISNUMBER(--TEXTBEFORE(ts,"x"))),,1) )
This is awesome, thank you it works.
One way:
Book1
AB
1Vito Glaserfix 111 6x2 mm wit - 10x25 m6x2
2Vito Glaserfix 111 6x2 mm zwart - 10x25 m6x2
3Vito Glaserfix 111 6x3 mm wit - 10x25 m6x3
4Vito Glaserfix 111 6x3 mm zwart - 10x25 m6x3
5Vito Glaserfix 111 6x4 mm wit - 10x25 m6x4
6Vito Glaserfix 111 6x4 mm zwart - 10x25 m6x4
7Vito Glaserfix 111 9x2 mm wit - 10x25 m9x2
8Vito Glaserfix 111 9x2 mm zwart - 10x25 m9x2
9Vito Glaserfix 111 9x3 mm wit - 10x25 m9x3
10Vito Glaserfix 111 9x3 mm zwart - 10x25 m9x3
11Vito Glaserfix 111 9x4 mm wit - 10x25 m9x4
12Vito Glaserfix 111 9x4 mm zwart - 10x25 m9x4
13Vito Glaserfix 111 9x5 mm wit - 10x10 m9x5
14Vito Glaserfix 111 9x5 mm zwart - 10x10 m9x5
15Vito Glaserfix 111 9x6 mm wit - 10x10 m9x6
16Vito Glaserfix 111 9x6 mm zwart - 10x10 m9x6
Sheet1
Cell Formulas
RangeFormula
B1:B16B1=LET( ts,TEXTSPLIT(A1," "), TAKE(FILTER(ts,ISNUMBER(--TEXTBEFORE(ts,"x"))),,1) )
Thank you this solved my problem. Have a nice day.
 
Upvote 0
consider
TextBefore.xlsm
AB
1Vito Glaserfix 111 6x2 mm wit - 10x25 m6x2
2Vito Glaserfix 111 6x2 mm zwart - 10x25 m6x2
3Vito Glaserfix 111 6x3 mm wit - 10x25 m6x3
4Vito Glaserfix 111 6x3 mm zwart - 10x25 m6x3
5Vito Glaserfix 111 6x4 mm wit - 10x25 m6x4
6Vito Glaserfix 111 6x4 mm zwart - 10x25 m6x4
7Vito Glaserfix 111 9x2 mm wit - 10x25 m9x2
8Vito Glaserfix 111 9x2 mm zwart - 10x25 m9x2
9Vito Glaserfix 111 9x3 mm wit - 10x25 m9x3
10Vito Glaserfix 111 9x3 mm zwart - 10x25 m9x3
11Vito Glaserfix 111 9x4 mm wit - 10x25 m9x4
12Vito Glaserfix 111 9x4 mm zwart - 10x25 m9x4
13Vito Glaserfix 111 9x5 mm wit - 10x10 m9x5
14Vito Glaserfix 111 9x5 mm zwart - 10x10 m9x5
15Vito Glaserfix 111 9x6 mm wit - 10x10 m9x6
16Vito Glaserfix 111 9x6 mm zwart - 10x10 m9x6
17
3f
Cell Formulas
RangeFormula
B1:B16B1=TEXTBEFORE(TEXTAFTER(A1," ",3)," ")
 
Upvote 0
TextBefore.xlsm
ABCE
1Vito Glaserfix 111 6x2 mm wit - 10x25 m6x26x26x2 mm
2Vito Glaserfix 111 6x2 mm zwart - 10x25 m6x26x26x2 mm
3Vito Glaserfix 111 6x3 mm wit - 10x25 m6x36x36x3 mm
4Vito Glaserfix 111 6x3 mm zwart - 10x25 m6x36x36x3 mm
5Vito Glaserfix 111 6x4 mm wit - 10x25 m6x46x46x4 mm
6Vito Glaserfix 111 6x4 mm zwart - 10x25 m6x46x46x4 mm
7Vito Glaserfix 111 9x2 mm wit - 10x25 m9x29x29x2 mm
8Vito Glaserfix 111 9x2 mm zwart - 10x25 m9x29x29x2 mm
9Vito Glaserfix 111 9x3 mm wit - 10x25 m9x39x39x3 mm
10Vito Glaserfix 111 9x3 mm zwart - 10x25 m9x39x39x3 mm
11Vito Glaserfix 111 9x4 mm wit - 10x25 m9x49x49x4 mm
12Vito Glaserfix 111 9x4 mm zwart - 10x25 m9x49x49x4 mm
13Vito Glaserfix 111 9x5 mm wit - 10x10 m9x59x59x5 mm
14Vito Glaserfix 111 9x5 mm zwart - 10x10 m9x59x59x5 mm
15Vito Glaserfix 111 9x6 mm wit - 10x10 m9x69x69x6 mm
16Vito Glaserfix 111 9x6 mm zwart - 10x10 m9x69x69x6 mm
17
3f
Cell Formulas
RangeFormula
B1:B16B1=MID(A1,FIND(" ",A1,17)+1,3)
C1:C16C1=TEXTBEFORE(TEXTAFTER(A1," ",3)," ")
E1:E16E1=TEXTBEFORE(TEXTAFTER(A1," ",3)," ",2)
 
Upvote 0
consider
TextBefore.xlsm
AB
1Vito Glaserfix 111 6x2 mm wit - 10x25 m6x2
2Vito Glaserfix 111 6x2 mm zwart - 10x25 m6x2
3Vito Glaserfix 111 6x3 mm wit - 10x25 m6x3
4Vito Glaserfix 111 6x3 mm zwart - 10x25 m6x3
5Vito Glaserfix 111 6x4 mm wit - 10x25 m6x4
6Vito Glaserfix 111 6x4 mm zwart - 10x25 m6x4
7Vito Glaserfix 111 9x2 mm wit - 10x25 m9x2
8Vito Glaserfix 111 9x2 mm zwart - 10x25 m9x2
9Vito Glaserfix 111 9x3 mm wit - 10x25 m9x3
10Vito Glaserfix 111 9x3 mm zwart - 10x25 m9x3
11Vito Glaserfix 111 9x4 mm wit - 10x25 m9x4
12Vito Glaserfix 111 9x4 mm zwart - 10x25 m9x4
13Vito Glaserfix 111 9x5 mm wit - 10x10 m9x5
14Vito Glaserfix 111 9x5 mm zwart - 10x10 m9x5
15Vito Glaserfix 111 9x6 mm wit - 10x10 m9x6
16Vito Glaserfix 111 9x6 mm zwart - 10x10 m9x6
17
3f
Cell Formulas
RangeFormula
B1:B16B1=TEXTBEFORE(TEXTAFTER(A1," ",3)," ")
That woud only work if the first measurement was always the 4th piece in.
 
Upvote 0
Re post #6
Yes, that is correct.

The formula TEXTBEFORE(TEXTAFTER(A1," ",3)," ",2) does provide a solution to the question with the data provided.
"I need to get '6x2 mm' "
 
Upvote 0

Forum statistics

Threads
1,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

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