#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default count unique

This is what I have:
A (Date) B (Emp #) C (Product #)
10-Oct-08 2 700
10-Oct-08 3 710
11-Oct-08 3 700
12-Oct-08 1 702
12-Oct-08 1 700
12-Oct-08 2 700
12-Oct-08 2 700
12-Oct-08 2 740

I want a formula to count how many employees worked on a certain product in
a certain day . Example: on 12-Oct-08,2 employees worked on product #
700.Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default count unique

=sumproduct(--(c2:c50="700")*(a2:a50=date(2008,10,12)))

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"MAANI" escreveu:

This is what I have:
A (Date) B (Emp #) C (Product #)
10-Oct-08 2 700
10-Oct-08 3 710
11-Oct-08 3 700
12-Oct-08 1 702
12-Oct-08 1 700
12-Oct-08 2 700
12-Oct-08 2 700
12-Oct-08 2 740

I want a formula to count how many employees worked on a certain product in
a certain day . Example: on 12-Oct-08,2 employees worked on product #
700.Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default count unique

Try this:

Data in A1:C8

Criteria
D1: holds date
E1: holds product #

=SUM(N(FREQUENCY(IF((A1:A8=D1)*(C1:C8=E1),MATCH(B1 :B8,B1:B8,)),MATCH(B1:B8,B1:B8,))0))

ctrl+shift+enter, not just enter


"MAANI" wrote:

This is what I have:
A (Date) B (Emp #) C (Product #)
10-Oct-08 2 700
10-Oct-08 3 710
11-Oct-08 3 700
12-Oct-08 1 702
12-Oct-08 1 700
12-Oct-08 2 700
12-Oct-08 2 700
12-Oct-08 2 740

I want a formula to count how many employees worked on a certain product in
a certain day . Example: on 12-Oct-08,2 employees worked on product #
700.Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default count unique

Try this array formula**:

Named ranges:

Date: refers to A1:A8
Emp: refers to B1:B8
Prod: refers to C1:C8

E1 = lookup date = 10/12/2008
F1 = prod number = 700

=COUNT(1/FREQUENCY(IF((Date=E1)*(Prod=F1),Emp),Emp))

Assumes there are no empty cells with Emp
Also assumes that your employee numbers are really *numbers* as your sample
demonstrates.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"MAANI" wrote in message
...
This is what I have:
A (Date) B (Emp #) C (Product #)
10-Oct-08 2 700
10-Oct-08 3 710
11-Oct-08 3 700
12-Oct-08 1 702
12-Oct-08 1 700
12-Oct-08 2 700
12-Oct-08 2 700
12-Oct-08 2 740

I want a formula to count how many employees worked on a certain product
in
a certain day . Example: on 12-Oct-08,2 employees worked on product #
700.Thanks



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default count unique

Teethless,I'm applying your function in a workbook,my source is in different
workbook,and my source has 65536 rows,when I applied your function it returns
#N/A also I can't save the file !!!

"Teethless mama" wrote:

Try this:

Data in A1:C8

Criteria
D1: holds date
E1: holds product #

=SUM(N(FREQUENCY(IF((A1:A8=D1)*(C1:C8=E1),MATCH(B1 :B8,B1:B8,)),MATCH(B1:B8,B1:B8,))0))

ctrl+shift+enter, not just enter


"MAANI" wrote:

This is what I have:
A (Date) B (Emp #) C (Product #)
10-Oct-08 2 700
10-Oct-08 3 710
11-Oct-08 3 700
12-Oct-08 1 702
12-Oct-08 1 700
12-Oct-08 2 700
12-Oct-08 2 700
12-Oct-08 2 740

I want a formula to count how many employees worked on a certain product in
a certain day . Example: on 12-Oct-08,2 employees worked on product #
700.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
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
Count Unique Values Averitt Engineer[_2_] Excel Worksheet Functions 17 February 17th 07 09:57 AM
Count unique entries... ChuckF Excel Worksheet Functions 5 October 12th 06 05:48 AM
Unique entry count Montrose77 Excel Discussion (Misc queries) 7 August 15th 06 08:28 PM
Count Unique Entries SouthCarolina Excel Worksheet Functions 4 April 14th 06 11:44 PM


All times are GMT +1. The time now is 01:28 AM.

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"