Share via

First duplicate occurrences count

Anonymous
2024-10-30T07:32:54+00:00

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.

Microsoft 365 and Office | Excel | For business | Windows

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.

0 comments No comments

Answer accepted by question author

Anonymous
2024-10-30T07:50:09+00:00

=COUNTA(UNIQUE(FILTER(A1:A8,COUNTIF(A1:A8,A1:A8)>1)))

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2024-10-30T07:55:56+00:00

    This is what I was looking for to use in Filter function COUNTIF(A1:A8,A1:A8)>1.

    Was this answer helpful?

    0 comments No comments