We are in the process of updating the site, so some pages still have the older design.
Use a formula to count the number of unique values that are contained within a list in Excel.
We need to enter a rather long formula, so it will be listed here in small parts.







This is the final formula:
=SUM(1/COUNTIF(A1:A7,A1:A7))
The curly braces have not been included in the formula because they do not appear until you enter the formula using Ctrl + Shift + Enter and, in fact, you will need to use that way to input this formula any time you go to edit it.
The last step is what makes this formula count the number of unique values in the list. Hitting Ctrl + Shift + Enter to input the formula makes the formula an array formula, which is what makes it all work.
There is no point to learn everything about this formula because, honestly, array formulas are a real pain in the you-know-what. The important thing is to bookmark this tutorial and come back to it when you need to have a formula that counts the number of unique values in a list or range in Excel.
Download the sample file that accompanies this tutorial so you can see this formula in action or if you just want to copy it instead of typing it in.
Follow along with the tutorial by downloading the files used in it. (Completely Free)
Phone number is optional - we use it to send course discounts and weekly updates via SMS.