I have 800 names in a table along with several filtering criteria that will be applied. What I need to know is the number of unique names in the table in the beginning and after a set of filters have been applied. Example: There are 300 unique names, I apply the filter in the table "males only" and the counter automatically updated to 150 names, i then apply the filter "starts with A" and the counter automatically updates again.
Just for background here are some of the things I've tried:
1. Pivot Table: this is no good because it needs to automatically update when a filter is applied and I can't use macros because it is not best practice (unfortunately)
2. IF(AND(COUNTIF statement: the exact statement I used was : =IF(AND(COUNTIF($A$1:$A$1000,A2)>0,COUNTIF($A$1:A1,A2)=0),1,0). The problem with this is that once rows get filtered because of later criteria, the formula does not adjust to which row is next in the table but rather which row
was there before the filtering occurred.
3. Advanced Filter- Unique Values Only: I can't change the original list but when I copy values to another location and then apply my filtering criteria, that copied location doesn't update to what names are left in the table.
If anyone has any method they think could work that would be great! If macros are the only way to do it that information would help too but hopefully that is not the case.
Thanks!
Just for background here are some of the things I've tried:
1. Pivot Table: this is no good because it needs to automatically update when a filter is applied and I can't use macros because it is not best practice (unfortunately)
2. IF(AND(COUNTIF statement: the exact statement I used was : =IF(AND(COUNTIF($A$1:$A$1000,A2)>0,COUNTIF($A$1:A1,A2)=0),1,0). The problem with this is that once rows get filtered because of later criteria, the formula does not adjust to which row is next in the table but rather which row
was there before the filtering occurred.
3. Advanced Filter- Unique Values Only: I can't change the original list but when I copy values to another location and then apply my filtering criteria, that copied location doesn't update to what names are left in the table.
If anyone has any method they think could work that would be great! If macros are the only way to do it that information would help too but hopefully that is not the case.
Thanks!