Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 98
Default Counting Individual Companies

I have a list of companies which occur more than once in a column. I want to
be able to count how many different companies there are, not how many times
they occur. Any help, please.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 180
Default Counting Individual Companies

You can use Advanced filter options and select 'Unique records only', it will
list the unique records from the list. You can also build a pivot, but this
is just too time consuming.

Regards,
Pranav Vaidya

"Nigel" wrote:

I have a list of companies which occur more than once in a column. I want to
be able to count how many different companies there are, not how many times
they occur. Any help, please.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 98
Default Counting Individual Companies

Hi Pranav

Thanks for your reply, but I need to have a count of how many.

"Pranav Vaidya" wrote:

You can use Advanced filter options and select 'Unique records only', it will
list the unique records from the list. You can also build a pivot, but this
is just too time consuming.

Regards,
Pranav Vaidya

"Nigel" wrote:

I have a list of companies which occur more than once in a column. I want to
be able to count how many different companies there are, not how many times
they occur. Any help, please.

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Counting Individual Companies

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

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Nigel" wrote in message
...
I have a list of companies which occur more than once in a column. I want
to
be able to count how many different companies there are, not how many
times
they occur. Any help, please.

Thanks



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 98
Default Counting Individual Companies

Hi Bob
Just what the doctor ordered, works a treat, many thanks. As an aside, what
do the 2 hyphens do, as it seems to work with or without them?

"Bob Phillips" wrote:

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

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Nigel" wrote in message
...
I have a list of companies which occur more than once in a column. I want
to
be able to count how many different companies there are, not how many
times
they occur. Any help, please.

Thanks






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Counting Individual Companies

You are right they are not necessary in this case. It is used when doing
conditional tests, such as (A1:A10="Apple") to coerce an array of TRUE/FALSE
to an array of 1/0, which is used in SUMPRODUCT multi-conditional tests.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Nigel" wrote in message
...
Hi Bob
Just what the doctor ordered, works a treat, many thanks. As an aside,
what
do the 2 hyphens do, as it seems to work with or without them?

"Bob Phillips" wrote:

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

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Nigel" wrote in message
...
I have a list of companies which occur more than once in a column. I
want
to
be able to count how many different companies there are, not how many
times
they occur. Any help, please.

Thanks






  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Counting Individual Companies

Bob

This answer/examnple also works very well for my problem. (Thanks you)
However, as my databases (7 in total) are some 50,000 lines long and I have
to do 2 calculations per database this takes a considerable amount of time.
Is there a quicker solution ? (apart from buying a PC with more memory /
processing space etc.)

Bob

"Bob Phillips" wrote:

You are right they are not necessary in this case. It is used when doing
conditional tests, such as (A1:A10="Apple") to coerce an array of TRUE/FALSE
to an array of 1/0, which is used in SUMPRODUCT multi-conditional tests.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Nigel" wrote in message
...
Hi Bob
Just what the doctor ordered, works a treat, many thanks. As an aside,
what
do the 2 hyphens do, as it seems to work with or without them?

"Bob Phillips" wrote:

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

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Nigel" wrote in message
...
I have a list of companies which occur more than once in a column. I
want
to
be able to count how many different companies there are, not how many
times
they occur. Any help, please.

Thanks






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
analysing companies - help!! therum Excel Discussion (Misc queries) 2 April 1st 07 01:06 AM
How do I consolidate balance sheets from different companies Mary F Excel Discussion (Misc queries) 0 June 27th 06 04:10 PM
Counting individual #s Mike Excel Discussion (Misc queries) 8 October 20th 05 04:01 PM
filter companies that does not perform a year Bram Excel Discussion (Misc queries) 4 October 11th 05 03:52 PM
Counting individual dates Robin Excel Discussion (Misc queries) 5 June 15th 05 07:02 PM


All times are GMT +1. The time now is 01:21 PM.

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"