ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Counting (https://www.excelbanter.com/excel-discussion-misc-queries/109038-counting.html)

Jason30

Counting
 
HOw do I count the number of unique cells whilst excluding those which have
identical values? I.e.

Col A

1234
1234
3456
4567

The number of unique numbers is 4 (as the first 2 are the same)

Bob Phillips

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

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Jason30" wrote in message
...
HOw do I count the number of unique cells whilst excluding those which

have
identical values? I.e.

Col A

1234
1234
3456
4567

The number of unique numbers is 4 (as the first 2 are the same)





All times are GMT +1. The time now is 07:41 AM.

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