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
 
In R11 then copied down
Excel Formula:
=LET(a,IF(ISNUMBER(1*MID(B11,ROW(INDIRECT("$1:$"&LEN(B11))),1)),MID(B11,ROW(INDIRECT("$1:$"&LEN(B11))),1)," "),b,TEXTJOIN("",FALSE,a),c,TRIM(b),TEXTSPLIT(c," "))
 
Upvote 0

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
@Fluff 's solution is much cleaner and shorter than mine, but i was looking for another way to solve this and came up with this
---------------------------------
Book1
BRSTUV
1ProductMILWidthLengthSFLBS/SF
2JM TPO 45MIL 5'X100' WHITE4551005000
3JM TPO 45MIL 5'X100' GREY4551005000
4JM TPO 45MIL 5'X100' TAN4551005000
5JM TPO 45MIL 6'X100' WHITE4561006000
6JM TPO 45MIL 8'X100' WHITE4581008000
7JM TPO 45MIL 8'X100' GREY4581008000
8JM TPO 45MIL 10'X100' WHITE451010010000
9JM TPO 45MIL 10'X100' GREY451010010000
10JM TPO 45MIL 10'X100' TAN451010010000
11JM TPO 45MIL 12'X100' WHITE451210012000
12JM TPO 45 MIL 12' x 100' GREY451210012000
13JM TPO 60MIL 5'X100' WHITE6051005000
14JM TPO 60MIL 5'X100' GREY6051005000
15JM TPO 60MIL 5'X100' TAN6051005000
16JM TPO 60MIL 6'X100' WHITE6061006000
17JM TPO 60MIL 6'X100' GREY6061006000
18JM TPO 60MIL 8'X100' WHITE6081008000
19JM TPO 60MIL 8'X100' GREY6081008000
20JM TPO 60MIL 8'X100' TAN6081008000
21JM TPO 60MIL 10'X100' WHITE601010010000
22JM TPO 60MIL 10'X100' GREY601010010000
23JM TPO 60MIL 10'X100' TAN601010010000
24JM TPO 60MIL 12'X100' WHITE601210012000
25JM TPO 60MIL 12'X100' GREY601210012000
26JM TPO 60MIL 12'X100' TAN601210012000
27JM TPO 80MIL 5'X100' WHITE8051005000
28JM TPO 80MIL 5'X75' GREY805753750
29JM TPO 80MIL 5'X75' TAN805753750
30JM TPO 80MIL 6'X75' WHITE806754500
31JM TPO 80MIL 8'X100' WHITE8081008000
32JM TPO 80MIL 8'X75' GREY808756000
33JM TPO 80MIL 8'X75' TAN808756000
34JM TPO 80MIL 10'X100' WHITE801010010000
35JM TPO 80MIL 10'X75' GREY8010757500
36JM TPO 80MIL 10'X75' TAN8010757500
37JM TPO 80MIL 12'X75' WHITE8012759000
Sheet2
Cell Formulas
RangeFormula
R2:R37R2=LET(prod,SUBSTITUTE(B2," ",""),MID(prod,SEARCH("MIL",prod)-((SEARCH("MIL",prod))-(SEARCH("TPO",prod)+3)),((SEARCH("MIL",prod))-(SEARCH("TPO",prod)+3))))
S2:S37S2=LET(prod,SUBSTITUTE(B2," ",""),MID(prod,SEARCH("'X",prod)-((SEARCH("'X",prod)-1)-(SEARCH("MIL",prod)+2)),(SEARCH("'X",prod)-1)-(SEARCH("MIL",prod)+2)))
T2:T37T2=SUBSTITUTE(LET(prod,SUBSTITUTE(B2," ",""),MID(prod,SEARCH("'X",prod)+2,3)),"'","")
U2:U37U2=S2*T2
V2:V37V2=E2/U2
 
Upvote 0
Thanks Guys. All solutions work but Fluff & kvsrinivasamurthy methods seem to be cleanest without many modifications for other variations. Appreciate everyone's time on this. Big help for me thanks again!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,893
Members
449,097
Latest member
dbomb1414

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