A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
=COUNTA(UNIQUE(FILTER(A1:A8,COUNTIF(A1:A8,A1:A8)>1)))
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I want to count the first duplicate occurrence in a list using single excel formula
In the below e.g I would get the count as 2
For now I am counting distinct in the range A1:A8 then minus the unique (5-3=2). Two formulas were used to find the first duplicate occurrences count.
Note: duplicate occurrence can repeat from 2 to 100 times.
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
This is what I was looking for to use in Filter function COUNTIF(A1:A8,A1:A8)>1.