Find duplicates from column B and delete them in column A

tango22tim

New Member
Joined
Jan 27, 2023
Messages
1
Office Version
  1. 2013
Platform
  1. Windows
Hey guys,

I have Column B(just domain names) and Column A(full URLs).

I need to find if a domain name from Column B consists in a URL that's in column A and if there is a match, delete the result that mamatches in column A.

Example: If careerbuilder . com from column B is found in https:// www . careerbuilder . com/ job/blog/hello in Column B, then delete/overwrite with blank https:// www . careerbuilder . com/ job/blog/hello.

I solved the first part of the issue with this formula: =IF(B2="","",MATCH("*"&B2&"*",A:A,0))

But I need to delete the duplicates. Or copy the non-duplicates from Column A to another column, let's say C.


Do you know how this is done?

Thanks!
 

Attachments

  • 1 (21).png
    1 (21).png
    236.8 KB · Views: 8

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Welcome to the MrExcel board!

Any chance that you could give us some small sample data with XL2BB so that we can easily copy to test with?
Also, for that same sample data, in another sheet, manually produce the result(s) that you want and also post that with XL2BB?
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,194
Members
453,021
Latest member
pingpong7117

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