Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Count Unique Items Using a function

0 views
Skip to first unread message

John

unread,
Nov 10, 2003, 10:06:51 AM11/10/03
to
Hello All,

Let's say I have a column of integers with a value
anywhere between 1 and 200. I would like to use a function
that will tell me how many unique integers are in the
column. I could probably write some sort of a function
which returns the unique count, but I was hoping there was
a more clever function for doing so.

Thanks in advance.

immanuel

unread,
Nov 10, 2003, 10:14:40 AM11/10/03
to
Check out:

http://www.cpearson.com/excel/duplicat.htm#CountingUnique

/i.

"John" <anon...@discussions.microsoft.com> wrote in message
news:092801c3a79c$455745b0$a601...@phx.gbl...

J.E. McGimpsey

unread,
Nov 10, 2003, 10:22:00 AM11/10/03
to
One way:

=SUMPRODUCT((A1:A1000<>"")/COUNTIF(A1:A1000,A1:A1000&""))

In article <092801c3a79c$455745b0$a601...@phx.gbl>,

Peo Sjoblom

unread,
Nov 10, 2003, 10:28:45 AM11/10/03
to
One way

=SUMPRODUCT(1/COUNTIF(A1:A100,A1:A100))

if there can be blanks

=SUM(IF(A1:A100<>"",1/COUNTIF(A1:A100,A1:A100)))

the latter entered with ctrl + shift & enter

--

Regards,

Peo Sjoblom


"John" <anon...@discussions.microsoft.com> wrote in message
news:092801c3a79c$455745b0$a601...@phx.gbl...

Peo Sjoblom

unread,
Nov 10, 2003, 10:38:18 AM11/10/03
to
I like that null string at the end..

--

Regards,

Peo Sjoblom


"J.E. McGimpsey" <jemcg...@mvps.org> wrote in message
news:jemcgimpsey-9C4E...@msnews.microsoft.com...

John

unread,
Nov 10, 2003, 10:43:07 AM11/10/03
to
Perfect, thanks.

>.
>

0 new messages