Extracting text/numbers after a specific text

silverkay

New Member
Joined
Nov 1, 2021
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I am looking for help with regard to extracting text/numbers after a specific text in Excel, below are two examples

"Manufacturer Silver Tire Width 205 Dia 21 Qty 1"
"Manufacturer Rubber Tire Width 213 Dia 23 Qty 3"

I am looking to extract
1) Text after "Manufacturer", e.g. "Silver" or "Rubber"
2) Number after Width, e.g. 205 or 213
3) Number after Dia, e.g. 21 or 23
4) Number after Qty. 1 or 3

Any help will be greatly appreciated, thank you!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABCDE
1ManufacturerWidthDiaQty
2Manufacturer Silver Tire Width 205 Dia 21 Qty 1Silver 205211
3Manufacturer Rubber Tire Width 213 Dia 23 Qty 3Rubber 213233
Data
Cell Formulas
RangeFormula
B2:E3B2=LET(t,MID($A2,FIND(B$1,$A2)+LEN(B$1)+1,99),LEFT(t,FIND(" ",t&" ")))
 
Upvote 0
=TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",50)),(2-1)*50+1,50))
=TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",50)),(5-1)*50+1,50))
=TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",50)),(7-1)*50+1,50))
=TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",50)),(9-1)*50+1,50))
 
Upvote 0
Solution
=TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",50)),(2-1)*50+1,50))
=TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",50)),(5-1)*50+1,50))
=TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",50)),(7-1)*50+1,50))
=TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",50)),(9-1)*50+1,50))
Worked perfectly, thank you so much!
 
Upvote 0
Did my suggestion work?
 
Upvote 0
The function is correct & it is meant to be LET, rather than LEFT.
 
Upvote 0
Did my suggestion work?
Hi, apologies for the late reply.

I couldn't figure out how to work around the LET function, and I got #NAME even when I copypasted the formula directly.
 
Upvote 0
Hi, apologies for the late reply.

I couldn't figure out how to work around the LET function, and I got #NAME even when I copypasted the formula directly.
#NAME indicates that a formula doesn't exist. It must be the LET() function.
Try this, in a blank cell enter

=LET(abc,3+4)

If it says #NAME then you don't have the LET() formula.
I don't have the LET() formula either.
 
Upvote 0

Forum statistics

Threads
1,215,379
Messages
6,124,608
Members
449,174
Latest member
ExcelfromGermany

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