Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Unique Count by Month

I needed to count all the unique names by month. Names in Col B and the
months are in col c. the names appear multiple times in the file
at least once in each month - I only want to count John Smith once in January
but his name appears 4 times in January

Thanks
Cassie

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 834
Default Unique Count by Month

Try this array formula

=SUM(--(FREQUENCY(IF(C1:C20="Jul",MATCH(B1:B20,B1:B20,0)) ,ROW(INDIRECT("1:"&ROWS(B1:B20))))0))

--

HTH

Bob

"Cassie" wrote in message
...
I needed to count all the unique names by month. Names in Col B and the
months are in col c. the names appear multiple times in the file
at least once in each month - I only want to count John Smith once in
January
but his name appears 4 times in January

Thanks
Cassie



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 320
Default Unique Count by Month

Since ROWS(B1:B20) is always 20, why not:
SUM(--(FREQUENCY(IF(C1:C20="Jul",MATCH(B1:B20,B1:B20,0)) ,ROW(1:20))0))

"Bob Phillips" wrote in message
...
Try this array formula

=SUM(--(FREQUENCY(IF(C1:C20="Jul",MATCH(B1:B20,B1:B20,0)) ,ROW(INDIRECT("1:"&ROWS(B1:B20))))0))

--

HTH

Bob

"Cassie" wrote in message
...
I needed to count all the unique names by month. Names in Col B and the
months are in col c. the names appear multiple times in the file
at least once in each month - I only want to count John Smith once in
January
but his name appears 4 times in January

Thanks
Cassie



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Unique Count by Month

Bob

Thanks but that didn't work.
Can I do this via a pivot table?

Thanks
Cassie

"Bob Phillips" wrote:

Try this array formula

=SUM(--(FREQUENCY(IF(C1:C20="Jul",MATCH(B1:B20,B1:B20,0)) ,ROW(INDIRECT("1:"&ROWS(B1:B20))))0))

--

HTH

Bob

"Cassie" wrote in message
...
I needed to count all the unique names by month. Names in Col B and the
months are in col c. the names appear multiple times in the file
at least once in each month - I only want to count John Smith once in
January
but his name appears 4 times in January

Thanks
Cassie



.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Unique Count by Month

Bob thanks

I got a #value! error
my data runs from row 1 header; row 2 - 10171 is the actual data
col b are the months
col c are the names

Cassie

"Bob Umlas" wrote:

Since ROWS(B1:B20) is always 20, why not:
SUM(--(FREQUENCY(IF(C1:C20="Jul",MATCH(B1:B20,B1:B20,0)) ,ROW(1:20))0))

"Bob Phillips" wrote in message
...
Try this array formula

=SUM(--(FREQUENCY(IF(C1:C20="Jul",MATCH(B1:B20,B1:B20,0)) ,ROW(INDIRECT("1:"&ROWS(B1:B20))))0))

--

HTH

Bob

"Cassie" wrote in message
...
I needed to count all the unique names by month. Names in Col B and the
months are in col c. the names appear multiple times in the file
at least once in each month - I only want to count John Smith once in
January
but his name appears 4 times in January

Thanks
Cassie



.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 834
Default Unique Count by Month

That would be

=SUM(SIGN(FREQUENCY(IF(C2:C10171="Jul",MATCH(B2:B1 0171,B2:B10171,0)),ROW(INDIRECT("1:"&ROWS(B2:B1017 1)-ROW(B2)+1)))))

and make sure that you array-enter it


--

HTH

Bob

"Cassie" wrote in message
...
Bob thanks

I got a #value! error
my data runs from row 1 header; row 2 - 10171 is the actual data
col b are the months
col c are the names

Cassie

"Bob Umlas" wrote:

Since ROWS(B1:B20) is always 20, why not:
SUM(--(FREQUENCY(IF(C1:C20="Jul",MATCH(B1:B20,B1:B20,0)) ,ROW(1:20))0))

"Bob Phillips" wrote in message
...
Try this array formula

=SUM(--(FREQUENCY(IF(C1:C20="Jul",MATCH(B1:B20,B1:B20,0)) ,ROW(INDIRECT("1:"&ROWS(B1:B20))))0))

--

HTH

Bob

"Cassie" wrote in message
...
I needed to count all the unique names by month. Names in Col B and
the
months are in col c. the names appear multiple times in the file
at least once in each month - I only want to count John Smith once in
January
but his name appears 4 times in January

Thanks
Cassie



.



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Unique Count by Month

Thanks very much - that works a treat
Cassie

"Bob Phillips" wrote:

That would be

=SUM(SIGN(FREQUENCY(IF(C2:C10171="Jul",MATCH(B2:B1 0171,B2:B10171,0)),ROW(INDIRECT("1:"&ROWS(B2:B1017 1)-ROW(B2)+1)))))

and make sure that you array-enter it


--

HTH

Bob

"Cassie" wrote in message
...
Bob thanks

I got a #value! error
my data runs from row 1 header; row 2 - 10171 is the actual data
col b are the months
col c are the names

Cassie

"Bob Umlas" wrote:

Since ROWS(B1:B20) is always 20, why not:
SUM(--(FREQUENCY(IF(C1:C20="Jul",MATCH(B1:B20,B1:B20,0)) ,ROW(1:20))0))

"Bob Phillips" wrote in message
...
Try this array formula

=SUM(--(FREQUENCY(IF(C1:C20="Jul",MATCH(B1:B20,B1:B20,0)) ,ROW(INDIRECT("1:"&ROWS(B1:B20))))0))

--

HTH

Bob

"Cassie" wrote in message
...
I needed to count all the unique names by month. Names in Col B and
the
months are in col c. the names appear multiple times in the file
at least once in each month - I only want to count John Smith once in
January
but his name appears 4 times in January

Thanks
Cassie



.



.

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
Count unique dates within each unique ID CD27 Excel Worksheet Functions 6 August 15th 09 03:15 PM
count month when date is in day/month/year format ccKennedy Excel Worksheet Functions 6 April 30th 09 03:32 AM
Filter out unique additions month to month Rookie_User Excel Discussion (Misc queries) 3 March 13th 09 02:29 PM
Count unique Spencer Hutton Excel Worksheet Functions 4 February 16th 09 09:34 PM
Attempting to sort unique/only count first record in each unique g MJW[_2_] Excel Discussion (Misc queries) 3 August 10th 07 02:56 PM


All times are GMT +1. The time now is 06:13 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"