How to remove letter from sequence in 1 column?

TH123

New Member
Joined
Nov 15, 2022
Messages
25
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I'd like to get your support to solve this issue with given conditions below (column C = what I'd like to get). Thank you in advance. ;)

1. If data in column B not found in column A => C = A
(example B1 = "ee" not found in column A1 = "dd" => C = "dd")
2. If data in column B found in column A => delete letter that found in column A
(example B2 = "ee" & found in column A2 = "dd, ee, ff" => C = dd, ff)

1668530275457.png
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi & welcome to MrExcel.
How about
Fluff.xlsm
ABC
1
2ddeedd
3dd, ee, ffeedd, ff
Data
Cell Formulas
RangeFormula
C2:C3C2=SUBSTITUTE(A2,B2&", ","")
 
Upvote 0
Solution
Hi & welcome to MrExcel.
How about
Fluff.xlsm
ABC
1
2ddeedd
3dd, ee, ffeedd, ff
Data
Cell Formulas
RangeFormula
C2:C3C2=SUBSTITUTE(A2,B2&", ","")
Hi Fluff,

Thanks for your support. I've tried & result is what I want exactly.

Thank you again. 🥰
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,552
Messages
6,120,172
Members
448,948
Latest member
spamiki

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