Count Unique Values

TIREGUY

New Member
Joined
Aug 28, 2019
Messages
5
Good afternoon,

I am working with a dataset evaluating UPMH and I need to find a solution to quickly counting the number of unique employees who performed a function in a specific week. In order for the number to be correct, it should be defined based on four (4) criteria: Location, Activity Name 1, Activity Name 2, and Fiscal Week. I've spent the last two (2) days attempting to come up with my own solution using COUNTIFS, arrays, and COUNTA, but the closest I've come gives me the total count of all employees who performed that function according to the above criteria, without removing the duplicate values. I had four employees, but seven entries - I can't seem to find a solution to return the correct answer of four. I have dropped some partially-fictionalized data below as an example. In my real data set, I have 8 unique values for Location, 23 for Activity Name 1, 49 for Activity Name 2, and obviously 52 for Fiscal Week. The reason I need unique employee names is that among these 8 Locations I have 1592 unique employees who can all perform various functions any given week.

I'm hoping I'm just missing the simple solution here o_O

LocationActivity Name 1Activity Name 2Fiscal WeekEmployee
ELKLUMPINGFLOOR LOADING1Joe
HOUPICKINGFLOOR UNLOADING2John
RENRECEIVINGFEDEX PICKING3Jill
SNBSHIPPINGLTL PICKING4Jerry
WDFTCAROE PICKING5Jill
WILGCSTRUCKLOAD PICKING6Jerry
GVLPLNAPIVOT INBOUND7Jason
PORTCAOFEDEX SHIPPING8John
ELKLUMPINGFLOOR LOADING1Joe
HOUPICKINGFLOOR LOADING2John
RENRECEIVINGFLOOR LOADING3Jill
SNBSHIPPINGFLOOR LOADING4Jerry
WDFTCARFLOOR LOADING5Jill
WILGCSTRUCKLOAD PICKING6Jerry
GVLPLNAPIVOT INBOUND7Jason
PORTCAOFEDEX SHIPPING8John
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
what version of excel are you using? ANd please update your profile so it appears on your profile icon.
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,976
Members
449,095
Latest member
Mr Hughes

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