Delete both duplicate on a list

usc1000

New Member
Joined
Mar 23, 2009
Messages
42
I am currently using Excel 2003 and have a list over 1000 unique id numbers. I know how to delete duplicate numbers, but I want to be able to find duplicate id numbers on the "B" column and delete both records for good. Any help would great!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi usc1000, welcome to the board.

There are several ways to do this.
One way, use a helper column to identify the duplicates using a formula like this -
Code:
=if(countif(b:b,b1)>1,1,0)
copied all the way down.

This will put a 1 next to any item that appears more than once, and a 0 next to any item that appears only once.
Then use data, filter, to display only the rows with a 1 in the helper column, and delete them.
 
Upvote 0
Thank you, Sir. I will try this, but it might take a while for me since i am not very good with excel formulas
 
Upvote 0
Hi usc1000, welcome to the board.

There are several ways to do this.
One way, use a helper column to identify the duplicates using a formula like this -
Code:
=if(countif(b:b,b1)>1,1,0)
copied all the way down.

This will put a 1 next to any item that appears more than once, and a 0 next to any item that appears only once.
Then use data, filter, to display only the rows with a 1 in the helper column, and delete them.

I try it and it works very well. Thank you! I am going to try to create a macro to make it easier to use.
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

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