Remove Text String from Text String

rockchalk33

Board Regular
Joined
Jan 12, 2016
Messages
111
1need 00001 help please-__-need help please-__-
KXY247with KXY247 thiswith this
35major 35 brain fartmajor brain fart

Column A is showing a string of what I need removed from Column B with the final result being Column C. I have about 33000 rows this needs to run on :) wish me luck!

I feel this should be super simple but man am I struggling to find a solution!

Devin
 
please have this a try:
MrExcel.xlsx
ABC
134Wilson combat 34 extended ejector 45Wilson combat extended ejector 45
235Case 00035 stockman med folder chrome vanadium clip/spey/sheepfoot yellow hndlCase stockman med folder chrome vanadium clip/spey/sheepfoot yellow hndl
335Cci 0035 standard round nose (lrn)Cci standard round nose (lrn)
435Psp 035 belt slide iwb/owb med/lgPsp belt slide iwb/owb med/lg
Sheet4
Cell Formulas
RangeFormula
C1:C4C1=LOOKUP(1,0/(LEN(SUBSTITUTE(B1,REPT(0,ROW($1:$10)-1)&A1,""))<LEN(B1)),SUBSTITUTE(B1,REPT(0,ROW($1:$10)-1)&A1,""))
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Add TRIM to remove unncessary blanks.
MrExcel.xlsx
ABC
134Wilson combat 34 extended ejector 45Wilson combat extended ejector 45
235Case 00035 stockman med folder chrome vanadium clip/spey/sheepfoot yellow hndlCase stockman med folder chrome vanadium clip/spey/sheepfoot yellow hndl
335Cci 0035 standard round nose (lrn)Cci standard round nose (lrn)
435Psp 035 belt slide iwb/owb med/lgPsp belt slide iwb/owb med/lg
Sheet4
Cell Formulas
RangeFormula
C1:C4C1=TRIM(LOOKUP(1,0/(LEN(SUBSTITUTE(B1,REPT(0,ROW($1:$10)-1)&A1,""))<LEN(B1)),SUBSTITUTE(B1,REPT(0,ROW($1:$10)-1)&A1,"")))
 
Upvote 0
Here is actual data, we would want C1 to be "Wilson combat extended ejector 45", C2 to be "Case stockman med folder chrome vanadium clip/spey/sheepfoot yellow hndl", etc..

Hi, here's another option you can try.

Book2
ABC
134Wilson combat 34 extended ejector 45Wilson combat extended ejector 45
235Case 00035 stockman med folder chrome vanadium clip/spey/sheepfoot yellow hndlCase stockman med folder chrome vanadium clip/spey/sheepfoot yellow hndl
335Cci 0035 standard round nose (lrn)Cci standard round nose (lrn)
435Psp 035 belt slide iwb/owb med/lgPsp belt slide iwb/owb med/lg
Sheet1
Cell Formulas
RangeFormula
C1:C4C1=TRIM(SUBSTITUTE(B1,TRIM(RIGHT(SUBSTITUTE(LEFT(B1,FIND(A1,B1)+LEN(A1)-1)," ",REPT(" ",99)),99)),"",1))
 
Upvote 0
Try
=TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B1," 0"," ")," 0"," ")," 0", " ")," 0", " "),A1,"",1))
 
Upvote 0
Try
=TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B1," 0"," ")," 0"," ")," 0", " ")," 0", " "),A1,"",1))
Hi, here's another option you can try.

Book2
ABC
134Wilson combat 34 extended ejector 45Wilson combat extended ejector 45
235Case 00035 stockman med folder chrome vanadium clip/spey/sheepfoot yellow hndlCase stockman med folder chrome vanadium clip/spey/sheepfoot yellow hndl
335Cci 0035 standard round nose (lrn)Cci standard round nose (lrn)
435Psp 035 belt slide iwb/owb med/lgPsp belt slide iwb/owb med/lg
Sheet1
Cell Formulas
RangeFormula
C1:C4C1=TRIM(SUBSTITUTE(B1,TRIM(RIGHT(SUBSTITUTE(LEFT(B1,FIND(A1,B1)+LEN(A1)-1)," ",REPT(" ",99)),99)),"",1))
Add TRIM to remove unncessary blanks.
MrExcel.xlsx
ABC
134Wilson combat 34 extended ejector 45Wilson combat extended ejector 45
235Case 00035 stockman med folder chrome vanadium clip/spey/sheepfoot yellow hndlCase stockman med folder chrome vanadium clip/spey/sheepfoot yellow hndl
335Cci 0035 standard round nose (lrn)Cci standard round nose (lrn)
435Psp 035 belt slide iwb/owb med/lgPsp belt slide iwb/owb med/lg
Sheet4
Cell Formulas
RangeFormula
C1:C4C1=TRIM(LOOKUP(1,0/(LEN(SUBSTITUTE(B1,REPT(0,ROW($1:$10)-1)&A1,""))<LEN(B1)),SUBSTITUTE(B1,REPT(0,ROW($1:$10)-1)&A1,"")))

BOOM! These are all working great!! Thank you guys so much!!!!! :):):)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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