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: 7

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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,214,976
Messages
6,122,541
Members
449,089
Latest member
davidcom

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