removing 1 of the duplicte rows

neilb

Board Regular
Joined
Apr 18, 2002
Messages
128
Hi

I have a table that contains duplicate rows of the same data apart from the date entered.

What I need to do is remove any duplicate rows apart from the first one entered.

I have tried delete query but can not figure out the criteria to do this. :confused:

Is this possible?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
How many duplicate rows do you have? If not too many, try this:

Create a dummy field (integer) with no data.

1. Create a Duplicates query (use the Wizard). Include the dummy field.
2. Now sort the query if you need to get all duplicates together. Run down the list and put a 1 next to the first occurrence of each duplicate. (Use the dummy field that you created in step 1)
3. Right-click on a 1 and Filter Excluding Selection
4. Now you can select all and delete. Long-winded, but it works.

Denis
 
Upvote 0

Forum statistics

Threads
1,221,687
Messages
6,161,287
Members
451,695
Latest member
Doug Mize 1024

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