Delete Duplicates (18k Rows)
Dec 24, 2009
I have a list of 18k rows, and about 7.5k are known duplicates. The delete duplicates button will not delete the duplicates (except it keeps returning 41 duplicates for an unknown reason, but there definitely thousands more it is missing). I tried the remove duplicates button, advance sort, coloring cells, and some macros. The list is the combination of two lists, one older one just compiled, I was able to seamlessly delete dups in another list.
View 9 Replies
ADVERTISEMENT
Jul 20, 2005
I have a sheet of Data containing 3705 rows. It has plenty of duplicates. Column A is where is located the identification. I need to delete the rows that are duplicated, in order to have only one row for each identification number. I tried to create my own VBA macro to do so, but it seems it doesn't delete all the duplicated rows and it seems to even delete unique rows.
Sub Duplicates()
Dim lstRw As Long
Dim i As Long
Dim j As Long
Dim m As Long
m = 1
Dim Compteur As Long
Compteur = 0
Application. ScreenUpdating = False
Let lstRw = Sheets("UE"). Range("A65536").End(xlUp).Row
For i = 2 To lstRw
'With Worksheets("UE")
SumNumber = Range("A" & i).Value.....................
View 5 Replies
View Related
Mar 15, 2009
I have two columns of data, and I need to create a third column to count the number of times that same line appears in the document (and then remove all but the first copy of that line). my data looks as follows (and it is sorted so all duplicate rows appear directly next to each other):
Adam1998 | Jan
Adam1998 | John
Adam1998 | John
Adam1998 | Paul
Adam1998 | Peter
Adam1998 | Peter
Adam1998 | Peter
Adam1999 |John
Adam1999 | Paul
I need this to look as follows:
Adam1998 | Jan | 1
Adam1998 | John | 2
Adam1998 | Paul | 1
Adam1998 | Peter | 3
Adam1999 |John | 1
Adam1999 | Paul | 1
View 2 Replies
View Related
Apr 20, 2012
I need excel to delete entire rows if there are duplicates in two columns combined.
So, if I have this sample data (in reality I have a lot more columns)
1 Tr. ID Last Name First Name Sex
2 RBM_A Miller Johnny M
3 RBM_A Bayron Josephine F
4 RBM_A Jackson Reynaldo M
[Code] ........
I want excel to delete only row 9, not 11, 13 or 14.
So far, if I look for duplicates in both columns it marks duplicates in either one. Also if I delete the duplicates, it deletes them only in those two columns, leaving me with distorted data (in this example, row 14 would have no last or first name, but only the values "RBM_C" in column B and "F" in column E.
View 2 Replies
View Related
May 14, 2006
I've been looking through various forums looking for a macro for a particular task, but I have not found something that works yet. Maybe someone could help me out? It's pretty straightforward situation.
I need a macro that removes an entire row when: information in column B and column C are both found in other rows ( duplicates).
I'm dealing with a worksheet with store record information ... Store Name (column B), Street Name (column C), State/Province, etc. I import new store records all the time and many are invalid because they share the same name and street address and therefore need to be removed. The ones that I’ve played with unfortunately end up deleting the cells only and not the entire row.
It's a tedious process to do manually remove entire rows (for duplicate column B&C) when dealing with thousands of rows and I would very much appreciate any assistance or insight into how simplify the process with a macro. I've attached a sample of what I'm working with.
View 9 Replies
View Related
Dec 6, 2006
I want to delete the current row if the data on row A and Row B match. Its hard to explain so I posted an example.
View 5 Replies
View Related
Apr 10, 2014
I've attached a test excel to this post. Column C contains several identical email addresses. I need ALL the rows containing the duplicate data removed, not leaving one remaining as Remove Duplicate Values normally does.
I'm going to be doing this with many Excels all with differing amounts of data surrounding column C. I need a reliable way to achieve this, regardless of how many extra data columns exist. If there is a duplicate of data in column C, all rows containing that data need to go, regardless of what other data may also be present in those rows.
View 10 Replies
View Related
Jun 15, 2006
I'm new to this and trying to write my own code (quit satisfying actually), I realise there's a lot of threads on duplicates but I couldn't really solve my problem. My code looks like the following
Private Sub Dubletter_Click()
Dim i As Long, lastrow As Long
Dim cell As range
For Each cell In Sheets("LR").range(Cells(3, 2), Cells(Rows.Count, 2))
lastrow = Cells(Rows.Count, 2).End(x1Up).Row
For i = lastrow To 3 Step -1
If Cells(r, 2).Value = cell Then
cell.EntireRow.Delete .....................
View 9 Replies
View Related
Feb 26, 2007
I want to create a macro that will look at different account numbers and delete those rows that have a sum of zero for that same account number. In other words, I am working with an accounting spreadsheet which shows both accounts payable and receivable. When payment is received for an account, I would like the macro to delete it, leaving only outstanding accounts. For instance: ....
View 7 Replies
View Related
Feb 2, 2014
The below code compares the Data in a Field that must be set and collect the duplicate Values in a second Worksheet.
The thing I want it to copy the rows, when a duplicate is found in Col A. editing the code below:
Original Sheet:
"A" "B" "C" "D"
Teil1A11000
Teil1B21001
[Code]....
View 7 Replies
View Related
Jun 19, 2013
I have a column with text values, I would like to remove all the duplicates. How can I do that??
View 4 Replies
View Related
Oct 24, 2013
I have two columns with emails. I would like to delete the emails that have duplicates. I want to delete them from both columns.
View 3 Replies
View Related
Jun 3, 2014
how to Delete Duplicates in Column D with a macro. It would search all of Column D and look for Duplicates and if it finds an exact value match it will delete one of the rows containing the duplicates. This is running in between a much longer macro which is the reason why I can't do it with conditional formatting.
View 12 Replies
View Related
Jun 4, 2014
I'm trying to create a macro that will Delete Rows of Duplicates found in Column D. It will start with the first row it finds that is yellow and check to see if that Column D matches any other yellow Column D's. If it does then the row the match is in gets deleted. Right now it searches in between the yellow rows, but for this portion I'm looking for it to use the yellow rows only. I included a file that has the examples on sheet1 and the expected outcome on sheet2.
View 6 Replies
View Related
Mar 12, 2014
I have an excel sheet which has product list according to each site. I want to count any duplicate products and delete the duplicates.
I have attached an excel worksheet with example template to show what i want it to look like.
View 1 Replies
View Related
May 7, 2009
i'm trying to do sounds simple enough. I have 2 Columns of data, example;
1-Apr 1423
1-Apr 1426
24-Apr1430
8-May1454
8-May1460
15-May1500
15-Jun1525
15-Jun1555
15-Jun1556
I want to clear (not delete) the cells with a duplicate date in them while keeping the cell with the number next to it. So in this case they would be A2, A5, A8, A9. I've come up with a code that looks pretty logical but it doesn't work. Here's what it looks like.
View 3 Replies
View Related
Jul 2, 2009
Hi, the code in the codebox under here, which I wrote, is supposed to delete all duplicate records in the column. Which column to uniquify is stated in cell Skin!B17. I searched the internet round, and there are different solutions everywhere. I have been unable though to find the right one - so I thought, why not ask here. If you have a solution, I'd be happy to hear it ...
View 14 Replies
View Related
May 23, 2007
2500 or so rows
based on these 3 columns:
[A], [B], [C]
company [A] , Account # [b], Fund # [c]
need to delete duplicates but keep lowest Fund # one.
basically if company and account # are the same then delete but keep the one with the lowest fund #
View 10 Replies
View Related
Jun 6, 2006
I have a macro that Deletes duplicates in a column. But it deletes all but the last cell. Does anyone know how to change it so It keeps the first cell and deletes the subsequent duplicates Instead?
View 9 Replies
View Related
Jul 10, 2006
I am writing a spreadsheet to do the following. I have clients that submit lists of words (3 columns of data) that need to be normalised (ie - certain punctuation removing, casing to lower etc) and then all duplicates to be removed. It then pastes everything into a new sheet. Now, it all works perfectly but, runs a little too slow.
Sub NormaliseDedupe()
Application.Calculation = xlCalculationManual
Application. ScreenUpdating = False
Dim my_advertiser
Set my_advertiser = Range("G1")
Dim my_client
Set my_client = Range("J1")
Sheets("Normalised Keywords").Select
If my_advertiser = "" Or my_client = "" Then
MsgBox "Enter the Advertiser & Client at the top of the sheet."
Exit Sub
End If
Dim my_date As String
my_date = Trim(VBA.Format(Now(), "DD.MM.YY"))........................
View 3 Replies
View Related
May 9, 2007
Here in the excel sheet i have columns upto K with rows upto 3295 In these columns the F column has Duplicates in that columns
My question is how we can delete the duplicates in that F column so that i can see my excel sheet without any duplicates in that F column.
View 3 Replies
View Related
Jun 20, 2008
I have a random set of numbers located in one column. This is the only data located on the entire worksheet. I need an Excel macro that will delete all duplicates except for any specified values. For example, I have a set of random numbers in one column and I need to delete all duplicates except for the number 12. All duplicates of the number 12 must remain. The numbers must remain in their original order and not be sorted.
The numbers will always be located in column A, but will not always be the same quantity. One time I may have 10 numbers, and the next I may have 20. The number for which duplicates must remain will also vary. I have written small Excel macros that delete rows, blanks, and duplicates but this is way beyond my capabilities.
View 2 Replies
View Related
Mar 29, 2013
I have two columns of data, one with an ID # and the other one with a date. Some ID# + date combinations are repeated and I need to delete the duplicates. Here is a visual:
ID# date
54 19720211
54 19720211
54 19810512
67 19590312
89 19931104
89 19931104
I need to keep only unique ID/date combinations. I would need the final list to look like this:
ID# Date
54 19720211
54 19810512
67 19590312
89 19931104
View 2 Replies
View Related
May 30, 2014
I have scroll a column and clear (not delete) the content of those cells that they are repeated. not delete the row
I tried with this code but doesn't work, why?
[Code] ......
View 1 Replies
View Related
Feb 20, 2009
I am using the following code to grab installed software on a remote computer through a macro in Excel 2007. I don't have the entire code I'm using as the majority of it works, this section here though is where I'm having problems.
View 4 Replies
View Related
Apr 1, 2009
I have an excel 2007 spreadsheet that lists
items on multiple rows for the same customer.
Each sheet will list anywhere from 25 to 100 individual customers.
I need to identify the duplicates, concatenate
the "Items" to a single cell on the first row, and
delete the duplicate rows. eg:
Cust #| Item
1 | A
1 | B
1 | C
2 | B
2 | E
3 | A
3 | C
3 | E
The result should look like:
Cust# | New Item
1 | A, B, C
2 | B, E
3 | A, C, E
View 14 Replies
View Related
Sep 28, 2009
I found the following code to delete duplicates. I want the code to work on close and only on a specific sheet....
View 3 Replies
View Related
Oct 15, 2009
I have 2 columns of data with 7,000 rows that I am trying to manipulate in the following way. The first column contains a list of car manufacturers (not really my example, but involves the same concept). The second column contains a list of different models of cars. For instance,
Ford | Taurus
Chevrolet | Avalanche
Saturn | Sky
Ford | Explorer
Honda | Accord
Ford | Taurus
What I want is a list of 2 columns with UNIQUE car manufacturers in first column with a list of UNIQUE car models (comma delimited) in second column. So for this example, the first row could read " Ford | Taurus,Explorer". I don't want Taurus to appear twice. I got a lot of help from JBeaucaire from this post. I just can't add the ability to remove car models from the list also. Thanks in advance for all the help!
View 7 Replies
View Related
Feb 5, 2013
I have a macro at work that shows which files are duplicates (same name plus file size) it then produces a list of this with 3 fields file path(excluding file), file name and ext, and size. it produces a duplicate of the file for example:
file a
file a
file b
file b
i would like a macro to delete just 1 of theese (as deleteing both would be bad!! haha) and have no idea how to start this. other than going through all 1679 files that have a duplicate.
View 9 Replies
View Related
Apr 18, 2006
I have some Job numbers that are duplicates. I can't just do a loop and delete any duplicates that come across because I have to be sure the right one is deleted.
I want the old data to be deleted if there is a duplicate..I just don't know how to verify which one is the old one using VBA. I was thinking of maybe using an advanced filter, but I don't know enough about them.
Is there code that will check both duplicates and delete the old one?
View 5 Replies
View Related