Unique Count on Filtered List

davidhall80

Well-known Member
Joined
Jul 8, 2006
Messages
663
I need to get a count of unique Employee IDs, The only problem is I can't use the formula below that I've been using because there is an active filter on column B. Is there a way to get a unique count on a filtered list.


SUM(IF(FREQUENCY(A2:A100,A2:A100)>0,1))



Thanks in advance
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Try...

=SUM(IF(FREQUENCY(IF(SUBTOTAL(3,OFFSET(A2:A100,ROW(A2:A100)-ROW(A2),0,1)),A2:A100),IF(SUBTOTAL(3,OFFSET(A2:A100,ROW(A2:A100)-ROW(A2),0,1)),A2:A100)),1))

...confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!
 
Upvote 0
The formula below is how I come up with the 5500 employee transactions. It gives me 5500 out of about 7500. Of this 5500, I need to get a unique count of Employee ID's so I can get an accurate headcount. I need a way to stick your formula at the end of this. The Employee ID's are on the same "New Ending 09-24-06" tab in column B as the other information that I'm pulling from. Is this possible?


SUMPRODUCT(--('New Ending 09-24-06 WO AV'!$Y$2:$Y$7594>0),--('New Ending 09-24-06 WO AV'!$Z$2:$Z$7594>0),--('New Ending 09-24-06 WO AV'!AE2:AE7594>0))
 
Upvote 0
First define the following...

Insert > Name > Define

Name: Array

Refers to:

=SUBTOTAL(3,OFFSET(CustIDRange,ROW(CustIDRange)-MIN(ROW(CustIDRange)),0,1))

Click Ok

Then try...

=SUM(IF(FREQUENCY(IF(RangeX>0,IF(RangeY>0,IF(RangeZ>0,IF(Array,CustIDRange)))),IF(RangeX>0,IF(RangeY>0,IF(RangeZ>0,IF(Array,CustIDRange))))),1))

...confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,214,575
Messages
6,120,344
Members
448,956
Latest member
Adamsxl

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