Remove a text string in column B based on column C

Pete2020

Board Regular
Joined
Apr 25, 2020
Messages
68
Office Version
  1. 2016
Platform
  1. Windows
I am very thankful to the Mr. Excel forum in providing right solutions.

my data consists 70k rows and would be helpful if you Provide a solution through VBA
  1. Match every comma separated string of column C with Column B at each row level (C2 with B2)
  2. If found - it should be remove the word along with Space and special characters or comma infront of it.
  3. The output should be populated in Column D
Search and remove.xlsx
ABCD
1School IDClient NameLocation - match words and remove from column BExpected Output
2SC-001Bachpan Play School, LoharaMIDC Area,Darwha Road, Lohara, YavatmalBachpan Play Schoo1
3SC-002Citizen Technical Institute WashimWashim, Maharashtra, IndiaCitizen Technical Institute
4SC-003Absolute Spoken English, wardha, maharashtra, indiaHindinagar, Wardha, Maharashtra, IndiaAbsolute Spoken English
5SC-004Kasturba Nursing college, KHS, SevagramSevagram, Maharashtra, IndiaKasturba Nursing college
6SC-005CP Goenka International School, Oshiwara | Andheri WestOshiwara, Andheri West, Mumbai, MaharashtraCP Goenka International School
7SC-006Sri Sri Ravishankar Vidya Mandir (SSRVM), Mulund, MumbaiSarvodaya Nagar, Mulund West, Mumbai, MaharashtraSri Sri Ravishankar Vidya Mandir (SSRVM)
8SC-007Saleem Zakerya Urdu High School PusegaonPusegaon Main RdSaleem Zakerya Urdu High School
Sheet1
 
I Checked the macro. It is very crystal clear in removing the words as per the requirement

You are awesome and worth than Gold

Thank You.
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Cheers. This sort of thing is notoriously tricky so you might still find some unusual results. Post back with details if this happens.
 
Upvote 0

Forum statistics

Threads
1,214,588
Messages
6,120,409
Members
448,959
Latest member
camelliaCase

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