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
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi, here is one option. For this to work, with your first example, you would also need to include the leading zeros in column A.

Book1
ABC
100001need 00001 help please-__-need help please-__-
2KXY247with KXY247 thiswith this
335major 35 brain fartmajor brain fart
Sheet1
Cell Formulas
RangeFormula
C1:C3C1=TRIM(SUBSTITUTE(B1,A1,""))
 
Upvote 0
Hi, here is one option. For this to work, with your first example, you would also need to include the leading zeros in column A.

Book1
ABC
100001need 00001 help please-__-need help please-__-
2KXY247with KXY247 thiswith this
335major 35 brain fartmajor brain fart
Sheet1
Cell Formulas
RangeFormula
C1:C3C1=TRIM(SUBSTITUTE(B1,A1,""))
FormR,

Appreciate the help but there are multiple instances in this data where the leading zeros can range anywhere from zero to ten. :cry:
 
Upvote 0
Hi, here is one option. For this to work, with your first example, you would also need to include the leading zeros in column A.

Book1
ABC
100001need 00001 help please-__-need help please-__-
2KXY247with KXY247 thiswith this
335major 35 brain fartmajor brain fart
Sheet1
Cell Formulas
RangeFormula
C1:C3C1=TRIM(SUBSTITUTE(B1,A1,""))
There is also instances where something such as 1 would reappear later in the text string and I am needing just the first instance removed.
 
Upvote 0
Will the string you want to replace always between the first and second blank?
 
Upvote 0
34
Wilson combat 34 extended ejector 45
35
Case 00035 stockman med folder chrome vanadium clip/spey/sheepfoot yellow hndl
35
Cci 0035 standard round nose (lrn)
35
Psp 035 belt slide iwb/owb med/lg

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...
 
Upvote 0
34
Wilson combat 34 extended ejector 45
35
Case 00035 stockman med folder chrome vanadium clip/spey/sheepfoot yellow hndl
35
Cci 0035 standard round nose (lrn)
35
Psp 035 belt slide iwb/owb med/lg

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...
What's the version of Excel you are using?
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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