TextJoin help plz

keef2

Board Regular
Joined
Jun 30, 2022
Messages
185
Office Version
  1. 365
Platform
  1. Windows
Hi,

Looking to extract the #'s in this text string. I would like to have 3 separate columns for the output one would be 45 then would be 5 and last would be 100 for this example. Right now my formula extracts all #'s from the text string. Curious what the best approach would be. Thanks!

Copy of CHICAGO IL 6.1.22 PRICE PAGE.xlsx
BRS
11JM TPO 45MIL 5'X100' WHITE455100
TPO
Cell Formulas
RangeFormula
R11R11=TEXTJOIN("",TRUE,IFERROR((MID(B11,ROW(INDIRECT("1:"&LEN(B11))),1)*1),""))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B69:D85,B130:D134,B87:D92,B94:D105,B107:D109,B125:D125,B148:D150,B11:D11,K10:P10,B118:D123,K22:Q25,K36:Q46,K27:Q33,B136:H137,B152:H157,J12:Q12,B127:K127,B66:K66,B48:K48,B9:K9,B10:I10,I67:P67,I117,I128:P128,I49:P49,I11:Q11,J69:Q85,J87:Q92,J94:Q105,J107:Q109Cellcontains a blank value textNO
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
seems like i dont have the right approach. But this is something messing with. There has to be a better way any help is appreciated.

Copy of CHICAGO IL 6.1.22 PRICE PAGE.xlsx
BRSTUVWX
10ProductTexJoin ExtractMILWidthLengthSFLBS/SF
11JM TPO 45MIL 5'X100' WHITE4551004551005000.284
12JM TPO 45MIL 5'X100' GREY4551004551005000.284
13JM TPO 45MIL 5'X100' TAN4551004551005000.284
14JM TPO 45MIL 6'X100' WHITE4561004561006000.285
15JM TPO 45MIL 8'X100' WHITE4581004581008000.28
16JM TPO 45MIL 8'X100' GREY4581004581008000.28
17JM TPO 45MIL 10'X100' WHITE4510100451010010000.284
18JM TPO 45MIL 10'X100' GREY4510100451010010000.284
19JM TPO 45MIL 10'X100' TAN4510100451010010000.284
20JM TPO 45MIL 12'X100' WHITE4512100451210012000.28417
21JM TPO 45 MIL 12' x 100' GREY4512100451210012000.28417
22JM TPO 60MIL 5'X100' WHITE6051006051005000.356
23JM TPO 60MIL 5'X100' GREY6051006051005000.356
24JM TPO 60MIL 5'X100' TAN6051006051005000.356
25JM TPO 60MIL 6'X100' WHITE6061006061006000.36
26JM TPO 60MIL 6'X100' GREY6061006061006000.36
27JM TPO 60MIL 8'X100' WHITE6081006081008000.3625
28JM TPO 60MIL 8'X100' GREY6081006081008000.3625
29JM TPO 60MIL 8'X100' TAN6081006081008000.3625
30JM TPO 60MIL 10'X100' WHITE6010100601010010000.357
31JM TPO 60MIL 10'X100' GREY6010100601010010000.357
32JM TPO 60MIL 10'X100' TAN6010100601010010000.357
33JM TPO 60MIL 12'X100' WHITE6012100601210012000.35833
34JM TPO 60MIL 12'X100' GREY6012100601210012000.35833
35JM TPO 60MIL 12'X100' TAN6012100601210012000.35833
36JM TPO 80MIL 5'X100' WHITE8051008051005000.49
37JM TPO 80MIL 5'X75' GREY80575805753750.49067
38JM TPO 80MIL 5'X75' TAN80575805753750.49067
39JM TPO 80MIL 6'X75' WHITE80675806754500.49111
40JM TPO 80MIL 8'X100' WHITE8081008081008000.49125
41JM TPO 80MIL 8'X75' GREY80875808756000.49167
42JM TPO 80MIL 8'X75' TAN80875808756000.49167
43JM TPO 80MIL 10'X100' WHITE8010100801010010000.491
44JM TPO 80MIL 10'X75' GREY8010758010757500.492
45JM TPO 80MIL 10'X75' TAN8010758010757500.492
46JM TPO 80MIL 12'X75' WHITE8012758012759000.49111
TPO
Cell Formulas
RangeFormula
V11:V36,V40,V43V11=RIGHT(R11,3)
W11:W46W11=U11*V11
X11:X46X11=E11/W11
V37:V39,V41:V42,V44:V46V37=RIGHT(R37,2)
U11:U43U11=IF(LEN(R11)>6,MID(R11,3,2),MID(R11,3,1))
R11:R46R11=TEXTJOIN("",TRUE,IFERROR((MID(B11,ROW(INDIRECT("1:"&LEN(B11))),1)*1),""))
T11:T46T11=LEFT(R11,2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B34:B35Cellcontains a blank value textNO
B26Cellcontains a blank value textNO
B21Cellcontains a blank value textNO
B41:C42,B17:D20,B16:C16,B12:D15,B22:D25,B27:D33,B36:D40,C38:C42,B43:D46Cellcontains a blank value textNO
B69:D85,B130:D134,B87:D92,B94:D105,B107:D109,B125:D125,B148:D150,B11:D11,K10:P10,B118:D123,K22:Q25,K36:Q46,K27:Q33,B136:H137,B152:H157,J12:Q12,B127:K127,B66:K66,B48:K48,B9:K9,B10:I10,I67:P67,I117,I128:P128,I49:P49,I11:Q11,J69:Q85,J87:Q92,J94:Q105,J107:Q109Cellcontains a blank value textNO
 
Upvote 0
How about
Fluff.xlsm
BCDEF
10Product
11JM TPO 45MIL 5'X100' WHITE455100
12JM TPO 45MIL 5'X100' GREY455100
13JM TPO 45MIL 5'X100' TAN455100
14JM TPO 45MIL 6'X100' WHITE456100
15JM TPO 45MIL 8'X100' WHITE458100
16JM TPO 45MIL 8'X100' GREY458100
17JM TPO 45MIL 10'X100' WHITE4510100
18JM TPO 45MIL 10'X100' GREY4510100
19JM TPO 45MIL 10'X100' TAN4510100
20JM TPO 45MIL 12'X100' WHITE4512100
21JM TPO 45 MIL 12' x 100' GREY4512100
22JM TPO 60MIL 5'X100' WHITE605100
23JM TPO 60MIL 5'X100' GREY605100
24JM TPO 60MIL 5'X100' TAN605100
25JM TPO 60MIL 6'X100' WHITE606100
26JM TPO 60MIL 6'X100' GREY606100
27JM TPO 60MIL 8'X100' WHITE608100
28JM TPO 60MIL 8'X100' GREY608100
29JM TPO 60MIL 8'X100' TAN608100
30JM TPO 60MIL 10'X100' WHITE6010100
31JM TPO 60MIL 10'X100' GREY6010100
32JM TPO 60MIL 10'X100' TAN6010100
33JM TPO 60MIL 12'X100' WHITE6012100
34JM TPO 60MIL 12'X100' GREY6012100
35JM TPO 60MIL 12'X100' TAN6012100
36JM TPO 80MIL 5'X100' WHITE805100
37JM TPO 80MIL 5'X75' GREY80575
38JM TPO 80MIL 5'X75' TAN80575
39JM TPO 80MIL 6'X75' WHITE80675
40JM TPO 80MIL 8'X100' WHITE808100
41JM TPO 80MIL 8'X75' GREY80875
42JM TPO 80MIL 8'X75' TAN80875
43JM TPO 80MIL 10'X100' WHITE8010100
44JM TPO 80MIL 10'X75' GREY801075
45JM TPO 80MIL 10'X75' TAN801075
46JM TPO 80MIL 12'X75' WHITE801275
Sheet3
Cell Formulas
RangeFormula
D11:F21D11=TOROW(TEXTSPLIT(UPPER(B11),CHAR(SEQUENCE(,26,65)),{" ","'"},1,0))
D22:F46D22=TOROW(TEXTSPLIT(B22,CHAR(SEQUENCE(,26,65)),{" ","'"},1))
Dynamic array formulas.
 
Upvote 0
You are such a stud Fluff!!! works like a charm, Thank you from racking my brain trying to figure this out the long way...

Cheers!!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
You're welcome & thanks for the feedback.
Fluff -- Spoke a little 2 quickly. Have 1 issue and I don't fully understand that formula yet. Here is the error i get in the second data set of many. Any thoughts?

I understand it is trying to pull all #'s so that means in the spill case it shows 4 separate #'s but i don't need the last one in this condition. (ie the 115 or 150 or 135 etc).

Cell Formulas
RangeFormula
U50:U64U50=IFERROR(S50*T50,"")
V50:V64V50=IFERROR(E50/U50,"")
R50:R56,R57:T64R50=TOROW(TEXTSPLIT(UPPER(B50),CHAR(SEQUENCE(,26,65)),{" ","'"},1,0))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B69:D85,B130:D134,B87:D92,B94:D105,B107:D109,B125:D125,B148:D150,B11:D11,K10:P10,B118:D123,K22:Q25,K36:Q46,K27:Q33,B136:H137,B152:H157,J12:Q12,B127:K127,B66:K66,B48:K48,B9:K9,B10:I10,I67:P67,I117,I128:P128,I49:P49,I11:Q11,J69:Q85,J87:Q92,J94:Q105,J107:Q109Cellcontains a blank value textNO
 
Upvote 0
You get that error as there are 4 sets of numbers in those cells, not 3. Do you just want the 1st 3?
 
Upvote 0
You get that error as there are 4 sets of numbers in those cells, not 3. Do you just want the 1st 3?
Yea that would be great what do i need to change for 1st 3? Sorry didnt notice that the send data set had that variable.
 
Upvote 0
How about
Excel Formula:
=TAKE(TOROW(TEXTSPLIT(UPPER(B50),CHAR(SEQUENCE(,26,65)),{" ","'"},1,0)),,3)
 
Upvote 0
Solution

Forum statistics

Threads
1,215,553
Messages
6,125,483
Members
449,233
Latest member
Deardevil

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