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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

My Aswer Is This

Well-known Member
Joined
Jul 5, 2014
Messages
18,233
Office Version
  1. 2013
Platform
  1. Windows
So assuming both have the same address like 1458 Elm Street
Why not look down column "B" for the address and delete all duplicates
 

Loin75

Active Member
Joined
Oct 21, 2009
Messages
281
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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,151,821
Messages
5,766,641
Members
425,365
Latest member
MrLupin

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
Top