#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default HELP

I have a long long column of company names ie

Company a
Company b
Company c

But some of them are duplicated ie

Company a
Company b
Company b
Company b
Company c
Company c
Company c

How can I do a count on these companies so that I'm only provided with a
count of each individual company name. (rather than the duplicates as well).

So the count for the list of duplicates above would be '3'.

Any one help????

Regards

Dave



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default HELP

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

if there are no blank cells in A1:A7

--
Regards,
Tom Ogilvy


"David Taplin" wrote in message
...
I have a long long column of company names ie

Company a
Company b
Company c

But some of them are duplicated ie

Company a
Company b
Company b
Company b
Company c
Company c
Company c

How can I do a count on these companies so that I'm only provided with a
count of each individual company name. (rather than the duplicates as

well).

So the count for the list of duplicates above would be '3'.

Any one help????

Regards

Dave





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default HELP

IT WORKS, Thanks tome, you've just saved my bacon !!

Much appreciated

Dave

"Tom Ogilvy" wrote in message
...
=SUMPRODUCT(1/COUNTIF(A1:A7,A1:A7))

if there are no blank cells in A1:A7

--
Regards,
Tom Ogilvy


"David Taplin" wrote in message
...
I have a long long column of company names ie

Company a
Company b
Company c

But some of them are duplicated ie

Company a
Company b
Company b
Company b
Company c
Company c
Company c

How can I do a count on these companies so that I'm only provided with a
count of each individual company name. (rather than the duplicates as

well).

So the count for the list of duplicates above would be '3'.

Any one help????

Regards

Dave







  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default HELP

On Tue, 19 Aug 2003 14:49:08 +0100, "David Taplin" wrote:

I have a long long column of company names ie

Company a
Company b
Company c

But some of them are duplicated ie

Company a
Company b
Company b
Company b
Company c
Company c
Company c

How can I do a count on these companies so that I'm only provided with a
count of each individual company name. (rather than the duplicates as well).

So the count for the list of duplicates above would be '3'.

Any one help????

Regards

Dave



You can also download and install the addin morefunc.xla.

One of the functions is =COUNTDIFF(array, blanks) and you can specify whether
or not to include blanks.

morefunc is available from:

http://perso.wanadoo.fr/longre/excel...m#Morefunc.xll


--ron
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



All times are GMT +1. The time now is 12:25 PM.

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

About Us

"It's about Microsoft Excel"