Counting unique entries in a range

We often required to count the unique entries in a Excel range and then it becomes little difficult task for most of the people.  So here is a quick formula solution to this task:-


If you wish to count the unique enteries in a range of A1:B100, just use below array formula which will give you the desired unique count.


{=SUM(IF(COUNTIF(A1:B100,A1:B100)=0, "", 1/COUNTIF(A1:B100,A1:B100)))}


Note: Array formula need to be entered using key combination Ctrl + Shift + Enter

Leave a Reply

Your email address will not be published. Required fields are marked *

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Visit Us On TwitterVisit Us On FacebookVisit Us On Youtube