Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Count duplicates once

I need to count how many different codes/numbers are in a list, and some of
them are duplicated. eg:

300001600
300001600
300002465
300001435
300005642

I need the result to show that there are 4 different numbers, rather than 5
in total.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Count duplicates once

If the codes/numbers are strictly numbers:

=COUNT(1/FREQUENCY(A1:A10,A1:A10))

If they may be alphanumeric:

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

Biff

"Tinkerbell1178" wrote in message
...
I need to count how many different codes/numbers are in a list, and some of
them are duplicated. eg:

300001600
300001600
300002465
300001435
300005642

I need the result to show that there are 4 different numbers, rather than
5
in total.



  #3   Report Post  
Junior Member
 
Posts: 1
Default

hello,

i have the same problem. I used the formula you suggested but it only works if the data series is predefined. i have a column of data to count and they change from month to month. I tried

=SUMPRODUCT((A:A<"")/COUNTIF(A:A,A:A&""))

but it doesn't work. Any suggestions?
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Table- how do I eliminate duplicates in count of name Isabelga Excel Discussion (Misc queries) 1 January 16th 06 06:15 PM
Count excluding Duplicates GRM via OfficeKB.com Excel Worksheet Functions 12 November 15th 05 09:07 PM
Count Duplicates Jonathan Excel Discussion (Misc queries) 2 April 8th 05 03:23 PM
Count 350 SS numbers, exclude duplicates Marsha Excel Discussion (Misc queries) 5 March 7th 05 05:49 PM
count a group of numbers but do not count duplicates Lisaml Excel Worksheet Functions 2 January 26th 05 11:19 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"