Share via

Countif unique values

Anonymous
2022-03-28T15:01:38+00:00

Hi all,

Is there a way to count only unique values in a table. So a count of the amount of times a unique reference appears

Ie

Name
DAN
Adam
DAN
DAVID
Adam

Then the count would show as 3, Ie 3 unique names appear.

Thanks

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

HansV 462.6K Reputation points
2022-03-28T15:08:25+00:00

If you have Microsoft 365 or Office 2021, you can use a formula such as

=COUNTA(UNIQUE(A2:A6))

In older versions you can use a formula such as

=SUMPRODUCT(1/COUNTIF(A2:A6,A2:A6))

(You may have to confirm the formula with Ctrl+Shift+Enter)

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2022-03-28T15:11:50+00:00

    Thank you, worked perfectly!

    Was this answer helpful?

    0 comments No comments