Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Count Unique Distinct Names In A Column (Case-Sensitive)

$
0
0

Hello Everyone!

I need to distinctly count a list of city names in a column in Excel. The column contains a whole bunch of city names which may be repeated any number of times within the rows of the column. I need to count only one time the name appears and leave out the repetitions. I use the following Excel formula for doing so, but there's only one problem with it. I can't use a "Named Range" within the formula. I created a Named Range for the column and tried putting it in the formula but it wouldn't work. Can anyone please help me with this ? I'm using Excel 2013.

FORMULA: 

=SUM(IFERROR(1/IF($A$1:$A$9<>"", FREQUENCY(IF(EXACT($A$1:$A$9, TRANSPOSE($A$1:$A$9)), MATCH(ROW($A$1:$A$9), ROW($A$1:$A$9)), ""), MATCH(ROW($A$1:$A$9), ROW($A$1:$A$9))), 0), 0))
; in column A1 of the worksheet, for example

 Appreciate all help.

Regards,


The problem with being punctual is, there's nobody there to appreciate it !!!



Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>