Remove duplicate rows which contain the same phone number and email address multiple times.

nickkmal

New Member
Joined
Mar 21, 2022
Messages
8
Office Version
  1. 365
Platform
  1. Windows
I get a spreadsheet with many duplicates. Some duplicate data is in one column (phone number column), some are in another (email address column).

I would like to find a way to identify the multiple rows where BOTH the phone number column data is duplicated and email address column data is duplicated with the same data. For example, where both the phone number column AND email address column are duplicated in - for example - 15 rows.

I only need one of these rows, not more.

This will allow me to remove duplicate rows which contain the same phone number and email address.

So in example below rows 3 and 4 are not duplicated. I am looking to find the other rows, and remove all but one of them

 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
you have an excel function named "Remove duplicates" in the ribbon under "data"
you select the columns you want to check for duplicates and start ...
 

Attachments

  • Schermafbeelding 2022-04-06 083742.png
    Schermafbeelding 2022-04-06 083742.png
    28.5 KB · Views: 31
Upvote 0
will this help? array(,,,) are your column number ie. A = 1, etc...
VBA Code:
Cells.RemoveDuplicates Columns:=Array(1, 3), Header:=xlYes
 
Upvote 0
you have an excel function named "Remove duplicates" in the ribbon under "data"
you select the columns you want to check for duplicates and start ...
Thank you but I only want to remove where data in one row and in 2 different columns on that row are duplicated elsewhere in the sheet
 
Upvote 0
that's the function "Advanced filter"
this is the VBA version, but you can do it manually too...
VBA Code:
  Range("A1:E25").AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Range("J1:K1"), Unique:=True
Map2 (version 1).xlsm
ABCDEFGHIJK
1telephoneBCDemailtelephoneemail
22row2@gmail.com
33row3@gmail.com
44row4@gmail.com
55row5@gmail.com
66row6@gmail.com
77row7@gmail.com
88row8@gmail.com
99row9@gmail.com
1010row10@gmail.com
1111row11@gmail.com
1212row12@gmail.com
1313row13@gmail.com
142row2@gmail.com
153row3@gmail.com
164row4@gmail.com
175row5@gmail.com
186row6@gmail.com
197row7@gmail.com
208row8@gmail.com
219row9@gmail.com
2210row10@gmail.com
2311row11@gmail.com
2412row12@gmail.com
2513row13@gmail.com
Blad120
Cell Formulas
RangeFormula
A2:A13A2=ROW()
E2:E13E2="row" & ROW() & "@gmail.com"
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,161
Members
453,021
Latest member
Justyna P

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