Count of duplicate values

tony0682

Board Regular
Joined
May 19, 2005
Messages
164
I want to be able to see how many values in a dataset are repeated more than once. it doesn't matter what the value is. I just want to see how many values do not uniquely appear in a list.

For example, the following list of numbers each in its own row.

1
2
5
3
c
6
z
g
z
z
1
3
3
3

The result should tell me 3 because 1, 3, z have duplicate entries in the list. Is this possible?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi,

Try this.

=SUMPRODUCT((A1:A50<>"")/COUNTIF(A1:A50,A1:A50&"")-(COUNTIF(A1:A50,A1:A50&"")=1))
 
Upvote 0
If my dataset were then the following;

1 y
2 y
5 n
3 y
c n
6 n
z y
g y
z y
z y
1 n
3 y
3 y
3 y

How would I change the formula to look for the duplicates only if the 2nd column has a "y". This set should return 2.
 
Upvote 0
I want to count how many times a value shows only once, twice, three times,etc... How do I mod this formula to accomplish that? Is there a frequency formula I can use?
 
Upvote 0

Forum statistics

Threads
1,203,642
Messages
6,056,500
Members
444,872
Latest member
Vishal Gupta

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