# Need help with counting data with multiple criteria, when one criteria has duplicates

#### rkallen2

##### New Member
I have the following data:
List of employees (Column A)
Department for each employee (Column B)
Training course completed (Column C)
Course Category (Column D)

Trying to solve for the following:
How many *employees* have completed a course in each course category by department.

I have solved for how many courses in each category have been completed by department using COUNTIFS, but because one employee can complete multiple courses in the same category, this count returned a higher value than the number of people who completed a course in each category.

I am unable to figure out how determine because employees names show up multiple times for the same course category.

Attached a sample of the data.

#### Attachments

• Capture.PNG
89.8 KB · Views: 6

### Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

#### mart37

##### Well-known Member
You can use a pivot table.
Important: Add data to data model then you can choose by functions for DISTINCT COUNT
Help for Distinct Count

#### mart37

##### Well-known Member
Map7
ABCDFGHIJKLMN
1EmployeeDepartmentCourse CategoryUnieke telling van EmployeeKolomlabels
31Financial CounselingSchedulingEmergency Registration1111
41Financial CounselingRegistrationFinancial Counseling1121
51Financial CounselingSchedulingHealth Infomation Management11
61Financial CounselingRegistrationEindtotaal21332
81Financial CounselingScheduling
112Emergency RegistrationScheduling
122Emergency RegistrationRegistration
132Emergency RegistrationScheduling
142Emergency RegistrationRegistration
152Emergency RegistrationRegistration
162Emergency RegistrationRegistration
172Emergency RegistrationRegistration
213Health Infomation ManagementHIM
224Financial CounselingRegistration
234Financial CounselingRegistration

Replies
1
Views
225
Replies
0
Views
80
Replies
7
Views
84
Replies
1
Views
230
Replies
10
Views
189

1,127,832
Messages
5,627,150
Members
416,223
Latest member
RichardHell

### 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.

### Which adblocker are you using?

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

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