ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Function to count unique items in list (https://www.excelbanter.com/excel-worksheet-functions/82501-function-count-unique-items-list.html)

XP

Function to count unique items in list
 
I am using Office 2003 on Windows XP.

Is there a built-in function in MS-Excel that gives you a count of the
unique items in a list?

If so, what is it called?

If not, how can I create a user defined function to do this?

Thanks much in advance.

Ron Coderre

Function to count unique items in list
 
Try this:

For a list in A1:A10

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

Adjust range references to suit your situation.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"XP" wrote:

I am using Office 2003 on Windows XP.

Is there a built-in function in MS-Excel that gives you a count of the
unique items in a list?

If so, what is it called?

If not, how can I create a user defined function to do this?

Thanks much in advance.


Bob Umlas

Function to count unique items in list
 
ctrl/shift/enter:
=SUM(1/COUNTIF(A1:A100,A1:A100))
Bob Umlas

"XP" wrote in message
...
I am using Office 2003 on Windows XP.

Is there a built-in function in MS-Excel that gives you a count of the
unique items in a list?

If so, what is it called?

If not, how can I create a user defined function to do this?

Thanks much in advance.





All times are GMT +1. The time now is 11:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com