count unique for each

deb

Active Member
Joined
Feb 1, 2003
Messages
400
excel 2010


I need to count the unique ProjectName (column B) for each ProjectID (column A) and enter it in column C

i.e. MD has 1 unique name, BW has 2 unique names...

.........A...........B..........C
1......MD.......McDan.....1
2......MD.......McDan.....1
3......BW.......Bill..........2
4......AF........Alf...........1
5......BW.......Billie........2
 
Sorry
MD is ProjectID McDan is the ProjectName (Name)

Bill doesn't look like a project name.

I assume you want to count how many people works/are associated with a project id. Moreover you want this over two sheets of which NCC is one. Right?
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
That is correct

2 sheets. counting unique ProjectNames (aka Names) for each ProjectID.
 
Upvote 0
Sheet1 Named NCC, column F ProjectNames, column E ProjectID
Sheet 2 Named Revenue, column E ProjectNames, column D ProjectID

Result should go in Sheet1 Named NCC, column S called ProjectNameMisspelled

Thank you for your help. this is important to the data and I wish I knew enough to figure it out.
At first I though the one sheet would be enough and then I found wrong names on both sheets and they need to be consistant.
 
Upvote 0
Sheet1 Named NCC, column F ProjectNames, column E ProjectID
Sheet 2 Named Revenue, column E ProjectNames, column D ProjectID

Result should go in Sheet1 Named NCC, column S called ProjectNameMisspelled

Thank you for your help. this is important to the data and I wish I knew enough to figure it out.
At first I though the one sheet would be enough and then I found wrong names on both sheets and they need to be consistant.

Given your samples...

Row\Col
E​
F​
S​
1​
sheet:NCC
2​
Project IDProjectNameProjectNameMisspelled
3​
MDMcDan
4​
MDMcDan
5​
BWBill
6​
AFAlf
7​
BWBillie

Row\Col
D​
E​
1​
sheet:Revenue
2​
Project IDProject Name
3​
BWBob
4​
AFAlfred

What are the results that you want to see under the header ProjectNameMisspelled?
 
Upvote 0
With your previous examples, I was able to figure it out....

=IF(COUNTIFS(E:E,"<>"&E2,D:D,D2)+COUNTIFS(NCC!F:F,"<>"&E2,NCC!E:E,D2)>0,"Verify Project names","")

Thank you!!
 
Upvote 0

Forum statistics

Threads
1,215,436
Messages
6,124,869
Members
449,192
Latest member
MoonDancer

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