SOLVED

Count of duplicates in a column

Brass Contributor

 

Good morning!

 

Is there a formula that can be used to give me a count of duplicate values in a column? 

 

To be clear, I'm not trying to count known duplicate values that I can include in a COUNTIF formula, such as =COUNTIF(A:A),"Specific Text". I'm looking for Excel to simply count how many times it sees a duplicate of any kind. See attached.

2 Replies
best response confirmed by Danger_SF (Brass Contributor)
Solution

@Danger_SF 

If you want the number of unique entries:

 

=COUNTA(UNIQUE(D3:D12))

 

If you want the number of entries that occur more than once:

 

=SUM(--(COUNTIF(D3:D12,UNIQUE(D3:D12))>1))

Thank you for your help.
1 best response

Accepted Solutions
best response confirmed by Danger_SF (Brass Contributor)
Solution

@Danger_SF 

If you want the number of unique entries:

 

=COUNTA(UNIQUE(D3:D12))

 

If you want the number of entries that occur more than once:

 

=SUM(--(COUNTIF(D3:D12,UNIQUE(D3:D12))>1))

View solution in original post