Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List of Data and want to count them only if they are not dupes

Status
Not open for further replies.

kidnos

Technical User
May 18, 2006
56
0
0
US
Hi, I have a list of data in column A, say:
,"365",1280
,"476",1280
,"596",1280
,"596",1280
,"40",1280
,"41",1280
,"53",1280
,"104",1280

I pulled it into excel from a comma delimited text file.
Well, I would like to count how man clients we have but exclude duplicate entries. So in this case wehn you total them there are 8 rows but only 7 clients b/c 596 is in there twice. We had an access query to do it but it dissapeared and I am certain excel can do it quicker. Would I use the COUNTIF function? Thanks
 
This seemed to work so far:
=SUMPRODUCT((A1:A200<>"")/COUNTIF(A1:A200,A1:A200&""))
 
and I very much doubt that excel will be quicker than access at this.....

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
You could get this info in 3 clicks. Create a pivot table from your xls. 2 things to note: Need a column heading and make what you are attempting to capture Column A of the pivot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top