A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Count



 
 
Thread Tools Display Modes
  #1  
Old March 9th, 2010, 10:16 AM posted to microsoft.public.excel.worksheet.functions
Louja
external usenet poster
 
Posts: 17
Default Count

Hi,

On my file I get a list of accounts. I have a look up which lets me
know which account belongs to which individual.

I need to know how many different individuals there are each day.
There can be a lot of change with new accounts etc so was thinking of
doing a pivot table and somehow using a COUNT function but am not sure
if this is going to work or if there is a better alternative.

Thanks

Louisa
  #2  
Old March 9th, 2010, 11:02 AM posted to microsoft.public.excel.worksheet.functions
Louja
external usenet poster
 
Posts: 17
Default Count

Also, I need to be able to know which group each individual belongs to
(which I also assign via a lookup) so that I can split headcount by
group and also office.

Thanks again

Louisa
  #3  
Old March 9th, 2010, 11:43 AM posted to microsoft.public.excel.worksheet.functions
Bob Phillips[_3_]
external usenet poster
 
Posts: 489
Default Count

You can count the individuals with

=SUMPRODUCT(--(B1:B100""),1/(COUNTIF(B1:B100,B1:B100&""))

--

HTH

Bob

"Louja" wrote in message
...
Hi,

On my file I get a list of accounts. I have a look up which lets me
know which account belongs to which individual.

I need to know how many different individuals there are each day.
There can be a lot of change with new accounts etc so was thinking of
doing a pivot table and somehow using a COUNT function but am not sure
if this is going to work or if there is a better alternative.

Thanks

Louisa



  #4  
Old March 12th, 2010, 09:26 AM posted to microsoft.public.excel.worksheet.functions
Louja
external usenet poster
 
Posts: 17
Default Count

I get that formula and it works well for all the individuals but say I
wanted to count how many different individuals were in London / Paris
(see below) how would I get this to work

Name Group
Adam Smith London
John Pickles Paris
Lee Adams Paris
Ben Jones London
Adam Smith London
John Pickles Paris


Thanks again

Louisa
  #5  
Old March 12th, 2010, 09:41 AM posted to microsoft.public.excel.worksheet.functions
Bob Phillips[_3_]
external usenet poster
 
Posts: 489
Default Count

Why didn't you say so?

Use this array formula

=SUM(--(FREQUENCY(IF(B2:B100="Paris",MATCH(A2:A100,A2:A10 0,0)),ROW(INDIRECT("1:"&ROWS(A2:A100))))0))

--

HTH

Bob

"Louja" wrote in message
...
I get that formula and it works well for all the individuals but say I
wanted to count how many different individuals were in London / Paris
(see below) how would I get this to work

Name Group
Adam Smith London
John Pickles Paris
Lee Adams Paris
Ben Jones London
Adam Smith London
John Pickles Paris


Thanks again

Louisa



  #6  
Old March 12th, 2010, 10:23 AM posted to microsoft.public.excel.worksheet.functions
Louja
external usenet poster
 
Posts: 17
Default Count

I didn't say so as I only just figured that is what I wanted......
  #7  
Old March 12th, 2010, 10:37 AM posted to microsoft.public.excel.worksheet.functions
Louja
external usenet poster
 
Posts: 17
Default Count

I have tried to use this formula and it comes back with 0

On 12 Mar, 09:41, "Bob Phillips" wrote:
Why didn't you say so?

Use this array formula

=SUM(--(FREQUENCY(IF(B2:B100="Paris",MATCH(A2:A100,A2:A10 0,0)),ROW(INDIRECT ("1:"&ROWS(A2:A100))))0))

--

HTH

Bob

"Louja" wrote in message

...



I get that formula and it works well for all the individuals but say I
wanted to count how many different individuals were in London / Paris
(see below) how would I get this to work


Name Group
Adam Smith London
John Pickles Paris
Lee Adams Paris
Ben Jones London
Adam Smith London
John Pickles Paris


Thanks again


Louisa


  #8  
Old March 12th, 2010, 10:56 AM posted to microsoft.public.excel.worksheet.functions
Louja
external usenet poster
 
Posts: 17
Default Count

All works now - thank you very much.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:46 PM.


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