Count And Delete Duplicates

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


Count Duplicate Rows Then Delete Duplicates

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

Pivot Table To Not Count Duplicates - But Show Duplicates When Click Into It

Aug 24, 2011

In short, I would like a pivot table to only count unique values, but when I click into the pivot I would like to show all instances of that value. For example:

I have a table of data that I am creating a pivot table from. There are fields for Customer ID, Task Name, Age, and Notes. There will be multiple records for a single Customer ID each time it has new notes.

I would like to create a pivot table that has Task Name in the Row Labels, Age in the Column Labels, and count of Customer ID in the Values, so that, for example, I can see how many accounts have been in the Design task for 2 days. However, when I do this it counts each record, but I would like it to count each unique Customer ID. Also, when I click into the pivot, instead of pulling up one line per Customer ID, I would like it to pull up each instance of Customer IDs in that Task Name/Age combination (similar to doing a DISTINCT in SQL).

View 3 Replies View Related

Count Duplicates And Duplicates With Suffix As One Instance

Mar 23, 2014

I have a list of isometric drawing numbers ending with a [underscore]weld number e.g. 1692-SG-0040-04_05.

Some welds are repaired--in that scenario the amended weld number will be 1692-SG-0040-04_05R1, and even 1692-SG-0040-04_05R2 if repaired for a second time.

On occasion a weld may be cut out entirely and a new weld done. The weld number for that will be 6317-FG-1690-02_06C1.

And here's a wrinkle I've just verified...a cut weld may also be repaired so the weld number will look like 1698-SG-0077-01_04C1R1.

Is there a formula to count these as one weld:

This as one weld:

...and this as one weld:

View 7 Replies View Related

Excel 2010 :: How To Count Duplicates Of Duplicates

Jan 24, 2012

I am having trouble creating a function to count duplicates of duplicates.

An example of the data table 1 is:

Product 1 2nd
Product 1 2nd
Product 1 New
Product 1 New
Product 1 Flt
Product 2 2nd
Product 2 New
Product 2 New
Product 2 Flt
Product 2 Flt
Product 3 2nd
Product 3 2nd
Product 3 2nd
Product 3 New
Product 3 Flt

I created a new table (table 2) and made a list of all the Products on table 1 and removed the duplicates. I now have 3 columns with titles New, 2nd and Flt as follows:

New 2nd Flt
Product 1 XX XX XX
Product 2 XX XX XX
Product 3 XX XX XX

I am trying to count the duplicates for each product (XX), but I can't seem to work it out. I've tried the MS help function, but unsure of the actual formula I need to be using.

I am using Windows 7 and MS Office 2010.

View 2 Replies View Related

How To Delete Both Duplicates

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

Delete The Duplicates

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

Delete Duplicates That Have Sum Zero

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

Count Only Duplicates

Sep 7, 2008

I would like to be able to count only the duplicate numbers without having to put the actual number in the formula.



View 14 Replies View Related

Count Without Duplicates

Oct 13, 2009

In my attachment is what i'm working with. In the first worksheet tab, "NOTBA 10 09", i need it to count what's in the other worksheets, minus the duplicates.

So C4 should be referencing to H3:H21 in the 04-Edmonton worksheet. The number it should be showing is 11, however it's counting 15 because there's 5 entries for CDAU034479. Is there a way for it to basically count what's in that column, minus the duplicates?

View 2 Replies View Related

Delete Duplicates From A Column

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

How To Delete The Emails That Have Duplicates

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

Delete Duplicates In Column D Only?

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

Delete Duplicates In Column D?

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

Clear (not Delete) Duplicates

May 7, 2009

i'm trying to do sounds simple enough. I have 2 Columns of data, example;

1-Apr 1423
1-Apr 1426

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

Delete Duplicates In Column

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

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 View Related

Delete Duplicates Values

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

Another Delete Duplicates (last Cell)

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

Normalise And Delete All The Duplicates

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

Delete Duplicates In A Column

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

Delete Duplicates Except Specified Values

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

Count And Flag Duplicates

Jun 12, 2014

I am using a CountIf formula to flag duplicate entries in a column of data, in a Column I have "=COUNTIF(P:P,P1)" It returns a number equal to the number of repeats of the data in call "P1". I then sort by that column to isolate all rows which have duplicates in Column "P". The cell has "1" if there are no repeats, "2" if there is one repeat, "3" if there are two repeats, etc. What I would like is a formula which would put a "1" in the cell the first time it sees data, then something else when it sees repeats. That way when I sort, ALL the repeats will be together and can be deleted. Is that possible?

View 7 Replies View Related

Count Duplicates In Column?

Jul 21, 2014

I have a column with something like 20 thousand rows. I would like a formula that basically checks the column for duplicates and numbers the sets of duplicates. So if there are 5 cells that are all "Server10" I would like for the formula to place a one next to all of those cells. And for the next set of duplicates it finds I would for it to place a 2 next to all of those cells. Essentially my end goal is to sort the sheet so that all of the matching duplicates are all together. There might be some simple filtering method here that I'm overlooking but if there is..... I'm overlooking it lol. And to be clear I don't want to eliminate the duplicates, I just want them grouped together.

I've attached a very simple example of what I would like the formula to do. The cells in the right column would be the result of the formula.

View 4 Replies View Related

Count The Duplicates In At Least 2 Columns

Jan 20, 2010

I have columns from A to AA and need to count the duplicates in at least 2 columns and accordingly need to give them values on the basis of their ratings (A, B, C, D) and type of work (book, article etc) given in yet other columns.

I tried COUNTIF, but that does not work for multiple perimeters
I tried SUMPRODUCT, =SUMPRODUCT(($G$4:$G$3000=$G28)*($AA$4:$AA$3000=AA28)), but that only gives a multiplication of my input without the possibility of giving new values to the output.

I tried AND(IF( but that did not want to work either really...

I think the solution is ifsum, but I do not know how to use it in this scenario...

I know this all sounds a bit blurry, so let me attempt to make it more concrete.

Author Title Year Rating Type Desired outcome
P Marx I 2005 I A I Book I duplicate
A Hegel I 1923 I B I Article I -
B Kant I 1674 I D I Book I -
A Derrida I 2005 I D I Monograph............................

View 5 Replies View Related

Count Only Duplicates And Not Blanks

May 23, 2012

Is there anyway to make this work without having to enter a specific range. For example I want to count the duplicates in column U, but don't want it to count blank cells.

Here is my formula right now, and it works, but it counts all of the blank cells in the row as duplicates. How can I stop that?


View 4 Replies View Related

Count Without Counting Duplicates Twice

Nov 27, 2007

i need to put serial no. without considering duplicate value.. i have ' N ' of value somewhere data is repeating when i am giving serial no i want to ignore duplicate value ...example given ... please see attached file..

View 4 Replies View Related

Delete Duplicates Value Combinations From Two Columns?

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

Remove Duplicates Cells Not Delete Row VBA?

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

Remove Duplicates And Delete Cells...

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

Copyrights 2005-15, All rights reserved