Count unique entries

will31

Board Regular
Joined
May 2, 2010
Messages
140
Hi,

I have a data sheet with the month of operation in A:A, Project ID in B:B and Department in C:C. The same project may appear more than once in B:B with the same month and department.

I need to count only once each project done in a specified month in a specified department. Any ideas how to achieve this??
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi Ayaz,

I've tried this but I cannot filter unique Project ID's which have multiple comments.

I need a method that does this using formula's really since the people who will be using this sheet are novice excel users.
 
Upvote 0
Hi,

I have a data sheet with the month of operation in A:A, Project ID in B:B and Department in C:C. The same project may appear more than once in B:B with the same month and department.

I need to count only once each project done in a specified month in a specified department. Any ideas how to achieve this??
Can you post several rows of sample data so we can see what we're dealing with?

10 or 15 rows worth of data should suffice.
 
Upvote 0
you have operation in A:A, Project ID in B:B and Department in C:C.
if you are using a formula where do you want the result to be appeared? Else send the copy of your file with some dummy data to my email mail.aravindhan@gmail.com
 
Upvote 0
Hi,

I have a data sheet with the month of operation in A:A, Project ID in B:B and Department in C:C. The same project may appear more than once in B:B with the same month and department.

I need to count only once each project done in a specified month in a specified department. Any ideas how to achieve this??

Assuming that you have dates in column A formatted to display something like Apr-11...

F2: 1-Apr-11 (displayed as: Apr-11)

G2 houses a department of interest.

H2, control+shift+enter, not just enter:
Code:
=SUM(IF(FREQUENCY(IF(B2:B100<>"",
    IF(TEXT(A2:A100,"mmmyy")=TEXT(F2,"mmmyy"),
    IF(C2:C100=G2,MATCHB2:B100,B2:B100,0)))),
     ROW(B2:B100)-ROW(B2)+1),1))
 
Upvote 0
Assuming that you have dates in column A formatted to display something like Apr-11...

F2: 1-Apr-11 (displayed as: Apr-11)

G2 houses a department of interest.

H2, control+shift+enter, not just enter:
Rich (BB code):
=SUM(IF(FREQUENCY(IF(B2:B100<>"",
    IF(TEXT(A2:A100,"mmmyy")=TEXT(F2,"mmmyy"),
    IF(C2:C100=G2,MATCHB2:B100,B2:B100,0)))),
     ROW(B2:B100)-ROW(B2)+1),1))

A paren is missing...
Rich (BB code):
=SUM(IF(FREQUENCY(IF(B2:B100<>"",
    IF(TEXT(A2:A100,"mmmyy")=TEXT(F2,"mmmyy"),
    IF(C2:C100=G2,MATCH(B2:B100,B2:B100,0)))),
     ROW(B2:B100)-ROW(B2)+1),1))
 
Upvote 0
Hi,

I have a data sheet with the month of operation in A:A, Project ID in B:B and Department in C:C. The same project may appear more than once in B:B with the same month and department.

I need to count only once each project done in a specified month in a specified department. Any ideas how to achieve this??
Does column A contain dates (maybe formatted to display only the month name) or does column A contain the month names as TEXT entries?

Also, if column A contains dates, do you need the count for the month AND year or just the month?
 
Upvote 0

Forum statistics

Threads
1,224,520
Messages
6,179,266
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top