Help counting duplicate values

Mchgh9

New Member
Joined
Feb 2, 2012
Messages
39
Hi,

I have a large amount of data that contains a lot of duplicate records. The records can have different states but I just want to count the number of times a specific cell appears in the list of data, without removing duplicates.

[TABLE="width: 571"]
<TBODY>[TR]
[TD]Tag?</SPAN>[/TD]
[TD]Insp. Date</SPAN>[/TD]
[TD]Insp. Time</SPAN>[/TD]
[TD]Insp.</SPAN>[/TD]
[TD]Inspection Type Description</SPAN>[/TD]
[TD]Inspection Outcome</SPAN>[/TD]
[TD]Insp. OD</SPAN>[/TD]
[TD]Promoter Reference</SPAN>[/TD]
[/TR]
[TR]
[TD]N</SPAN>[/TD]
[TD]18/12/2003</SPAN>[/TD]
[TD]15:01</SPAN>[/TD]
[TD]RTN</SPAN>[/TD]
[TD]Routine Category B</SPAN>[/TD]
[TD]PASSED</SPAN>[/TD]
[TD]LA001</SPAN>[/TD]
[TD]MERS00069694</SPAN>[/TD]
[/TR]
[TR]
[TD]N</SPAN>[/TD]
[TD]07/06/2005</SPAN>[/TD]
[TD]11:55</SPAN>[/TD]
[TD]D/1</SPAN>[/TD]
[TD]Defect Joint Site Visit Category C</SPAN>[/TD]
[TD]FAIL-LOW RISK</SPAN>[/TD]
[TD]GT001</SPAN>[/TD]
[TD]MERS00075412</SPAN>[/TD]
[/TR]
[TR]
[TD]N</SPAN>[/TD]
[TD]19/08/2005</SPAN>[/TD]
[TD]00:00</SPAN>[/TD]
[TD]D/1</SPAN>[/TD]
[TD]Defect Joint Site Visit Category C</SPAN>[/TD]
[TD]FAIL-LOW RISK</SPAN>[/TD]
[TD]GT001</SPAN>[/TD]
[TD]CC59463</SPAN>[/TD]
[/TR]
[TR]
[TD]N</SPAN>[/TD]
[TD]13/11/2006</SPAN>[/TD]
[TD]15:03</SPAN>[/TD]
[TD]D/2</SPAN>[/TD]
[TD]Defect Follow Up Category C</SPAN>[/TD]
[TD]FAIL-LOW RISK</SPAN>[/TD]
[TD]PN001</SPAN>[/TD]
[TD]WR125212</SPAN>[/TD]
[/TR]
[TR]
[TD]N</SPAN>[/TD]
[TD]27/11/2006</SPAN>[/TD]
[TD]16:00</SPAN>[/TD]
[TD]D/1</SPAN>[/TD]
[TD]Defect Joint Site Visit Category C</SPAN>[/TD]
[TD]FAIL-LOW RISK</SPAN>[/TD]
[TD]PN001</SPAN>[/TD]
[TD]WR125212</SPAN>[/TD]
[/TR]
[TR]
[TD]N</SPAN>[/TD]
[TD]03/01/2007</SPAN>[/TD]
[TD]09:05</SPAN>[/TD]
[TD]D/1</SPAN>[/TD]
[TD]Defect Joint Site Visit Category C</SPAN>[/TD]
[TD]FAIL-LOW RISK</SPAN>[/TD]
[TD]PN001</SPAN>[/TD]
[TD]WR125212</SPAN>[/TD]
[/TR]
[TR]
[TD]N</SPAN>[/TD]
[TD]30/01/2007</SPAN>[/TD]
[TD]13:04</SPAN>[/TD]
[TD]D/2</SPAN>[/TD]
[TD]Defect Follow Up Category C</SPAN>[/TD]
[TD]FAIL-LOW RISK</SPAN>[/TD]
[TD]PN001</SPAN>[/TD]
[TD]WR125212</SPAN>[/TD]
[/TR]
[TR]
[TD]N</SPAN>[/TD]
[TD]23/03/2007</SPAN>[/TD]
[TD]11:01</SPAN>[/TD]
[TD]D/1</SPAN>[/TD]
[TD]Defect Joint Site Visit Category C</SPAN>[/TD]
[TD]FAIL-LOW RISK</SPAN>[/TD]
[TD]PN001</SPAN>[/TD]
[TD]WR125212</SPAN>[/TD]
[/TR]
[TR]
[TD]N</SPAN>[/TD]
[TD]20/04/2007</SPAN>[/TD]
[TD]09:00</SPAN>[/TD]
[TD]D/2</SPAN>[/TD]
[TD]Defect Follow Up Category C</SPAN>[/TD]
[TD]FAIL-LOW RISK</SPAN>[/TD]
[TD]PN001</SPAN>[/TD]
[TD]WR125212</SPAN>[/TD]
[/TR]
[TR]
[TD]N</SPAN>[/TD]
[TD]09/05/2007</SPAN>[/TD]
[TD]12:00</SPAN>[/TD]
[TD]D/1</SPAN>[/TD]
[TD]Defect Joint Site Visit Category C</SPAN>[/TD]
[TD]FAIL-LOW RISK</SPAN>[/TD]
[TD]PN001</SPAN>[/TD]
[TD]WR125212

</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL span=7><COL></COLGROUP>[/TABLE]

This is a small sample of the data. As you can see in the works reference WR125212 appears a number of times. There are approx 20,000 rows with various different references in this data.

Is there any way I can count the number of unique reference numbers, possibly using a pivot table or a formula?

Thanks

Dave
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi Dave,

You can also do this with a pivot table. Put the "Promoter Reference" field in both the Values and Row areas. Since it's text, the default calculation in the pivot will be Count. Should look omething like the table below.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Row Labels[/TD]
[TD]Count of Promoter Reference[/TD]
[/TR]
[TR]
[TD]CC59463[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]MERS00069694[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]MERS00075412[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]WR125212[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]Grand Total[/TD]
[TD="align: right"]10[/TD]
[/TR]
</tbody>[/TABLE]



Now, if only I could figure out how to post an image here to give the actual illustration....

Best regards,
Esther
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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