Counting different values

R

rgoubet

Hi,

I found an old post answering exactly the question I had (how to count
the number of different values in a range). However, I don't understand
how it works:
Assuming your data is in A1:A10, and there are no blanks, the
following array formula (from David Hager) will count the number of
unique items:

=SUM(1/COUNTIF(A1:A10,A1:A10))

Use Ctrl+Shift+Enter instead of Enter.

What does Ctrl+Shift+Enter do? Why doesn't the formula work when I use
Enter? What's the logic behind the formula itself?

Thanks!

Raph
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top