Cannot find logic to delete duplicate data

Loin75

Active Member
Joined
Oct 21, 2009
Messages
281
Hi all,

I have been handed a spreadsheet that has thousands of names and addresses extracted from a SQL database.
Each row also includes columns for their partners name (if they have one)

My problem is that if Mr John Smith has a partner (eg, Mrs Janet Smith) showing in the same row, then further down I also have an entry for Mrs Janet Smith and her partner Mr John Smith.

The extraction created a row for every client, so I have duplicate entries.

I am struggling to find logic that will help me to delete the "additional" rows. I can use MATCH formulas to identify where duplication occurs, but not sure how to remove only one of the two entries.

Has anyone come across such a thing, and can offer any logic that I am missing to help?

Many thanks in advance
 
Last edited:

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
So assuming both have the same address like 1458 Elm Street
Why not look down column "B" for the address and delete all duplicates
 
Upvote 0
So assuming both have the same address like 1458 Elm Street
Why not look down column "B" for the address and delete all duplicates

Thanks. This was a consideration until i realised that we had examples of kids as well at the same address. If we removed duplicates, how can I guarantee that it deletes the 4 kids and not the main client entry?

I am also not sure if I should be deleting these child entries just yet anyway. I would probably prefer to keep these until i hear otherwise from my Supervisors.
 
Upvote 0

Forum statistics

Threads
1,214,815
Messages
6,121,715
Members
449,049
Latest member
THMarana

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