Graham C1600
Board Regular
- Joined
- Feb 17, 2018
- Messages
- 96
- Office Version
- 365
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]a[/TD]
[TD]b[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]e[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]User ID[/TD]
[TD]Login [/TD]
[TD]UTC[/TD]
[TD]Users[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]Yes[/TD]
[TD]No[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1[/TD]
[TD]Yes[/TD]
[TD]No[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]1[/TD]
[TD]No[/TD]
[TD]No[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]2[/TD]
[TD]No[/TD]
[TD]Yes[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]3[/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]4[/TD]
[TD]Yes[/TD]
[TD]No[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]4[/TD]
[TD]No[/TD]
[TD]No[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]5[/TD]
[TD]No[/TD]
[TD]No[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
What I need to try and work out is as follows as a formula for Column D is a follows :-
Colums C is to ="No" Login is to Equal "No" How many unique values are left in Column A ?? So in this example the answer would be 1 and this is user ID 5. This is because there are some Login "Yes" answers for the user ID's. So if anybody has logged in under the User ID I do not want to count that User ID. Just UTC "No" and Logon "No" per User ID.
Secondly I need to count all users in Column D where at least 1 User ID has logged on. So this would be C="No" B="Yes". In this case the answer would be 5. User ID is a No, No and 2 and 3 are a UTC Yes. So if a User ID had a list of 20 underneath and at least one had logged on, I would count them all. I need to exclude any Use ID's where there have been no logon's.
Hope this makes sense.
Thanks
<tbody>[TR]
[TD][/TD]
[TD]a[/TD]
[TD]b[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]e[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]User ID[/TD]
[TD]Login [/TD]
[TD]UTC[/TD]
[TD]Users[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]Yes[/TD]
[TD]No[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1[/TD]
[TD]Yes[/TD]
[TD]No[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]1[/TD]
[TD]No[/TD]
[TD]No[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]2[/TD]
[TD]No[/TD]
[TD]Yes[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]3[/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]4[/TD]
[TD]Yes[/TD]
[TD]No[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]4[/TD]
[TD]No[/TD]
[TD]No[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]5[/TD]
[TD]No[/TD]
[TD]No[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
What I need to try and work out is as follows as a formula for Column D is a follows :-
Colums C is to ="No" Login is to Equal "No" How many unique values are left in Column A ?? So in this example the answer would be 1 and this is user ID 5. This is because there are some Login "Yes" answers for the user ID's. So if anybody has logged in under the User ID I do not want to count that User ID. Just UTC "No" and Logon "No" per User ID.
Secondly I need to count all users in Column D where at least 1 User ID has logged on. So this would be C="No" B="Yes". In this case the answer would be 5. User ID is a No, No and 2 and 3 are a UTC Yes. So if a User ID had a list of 20 underneath and at least one had logged on, I would count them all. I need to exclude any Use ID's where there have been no logon's.
Hope this makes sense.
Thanks