KevinFlame
New Member
Hi folks
Had some great help the last time I posted a question, so hopefully someone can help me with this too...
I have a table (called compRoles) that contains the columns: Role; User Name; and Indirect User-Role Assignment.
Problem 1
Cells F5:F9 contain a list of role names. I want to count the number of unique users in the table that do not have any of these roles.
I have got so far using the following array formula, but this only counts the number of unique users without the role in cell F5:
{=SUM(IF(FREQUENCY(IF(compRoles[Role]<>Calcs!$F$5,MATCH(compRoles[User Name],compRoles[User Name],0)),IF(compRoles[Role]<>Calcs!$F$5,MATCH(compRoles[User Name],compRoles[User Name],0)))>0,1))}
If I change the <> part of the formula to look at Calcs!$F$5:$F$9, I get the #N/A error. Can someone explain where I am going wrong please?
Problem 2
Cells E5:E6 contain the two permissible values that appear in the Indirect User-Role Assignment column of my table. I want to count the number of unique users that have the same role more than once, but is assigned using both of the values in E5 and E6. I'm afraid I have no idea where to start on this one, so any help greatly appreciated!
--
James
Had some great help the last time I posted a question, so hopefully someone can help me with this too...
I have a table (called compRoles) that contains the columns: Role; User Name; and Indirect User-Role Assignment.
Problem 1
Cells F5:F9 contain a list of role names. I want to count the number of unique users in the table that do not have any of these roles.
I have got so far using the following array formula, but this only counts the number of unique users without the role in cell F5:
{=SUM(IF(FREQUENCY(IF(compRoles[Role]<>Calcs!$F$5,MATCH(compRoles[User Name],compRoles[User Name],0)),IF(compRoles[Role]<>Calcs!$F$5,MATCH(compRoles[User Name],compRoles[User Name],0)))>0,1))}
If I change the <> part of the formula to look at Calcs!$F$5:$F$9, I get the #N/A error. Can someone explain where I am going wrong please?
Problem 2
Cells E5:E6 contain the two permissible values that appear in the Indirect User-Role Assignment column of my table. I want to count the number of unique users that have the same role more than once, but is assigned using both of the values in E5 and E6. I'm afraid I have no idea where to start on this one, so any help greatly appreciated!
--
James