Which excel formula to use?

1

I created a pivot table based on some information and it is looking like this:

+------------+---------+---------+---------+
|    Site    |  UserP  |  Group  | Username
+------------+---------+---------+---------+
| Site A     |  Read   | Group1  | Michael |
|            |         |         |         |
+------------+---------+---------+---------+
|            |         |         | John    |
|            |         |         |         |
+------------+---------+---------+---------+
|            |         |         | Philip  |
|            |         |         |         |
+------------+---------+---------+---------+
|            |  Read   | Group2  | Philip  |
|            |         |         |         |
+------------+---------+---------+---------+

It basically shows everybody that has permission for site A, its type and where its coming from.

The point is to find duplicates, like "Philip" in the example above. He has the same type of permission from two groups, so we need to leave him only to one group.

How can I filter all duplicates? That is duplicates in the "Username" column within the same Site and type of permission?

At first I thought this was easy, as I could just filter per Site. But then I would have to go one by one filtering and looking for duplicates(I think, correct me if I am wrong and theres a easier way)

I am only starting with pivot tables so sorry if this is a dumb question.

Thanks in advance.

ranbo

Posted 2017-03-07T19:12:33.637

Reputation: 113

What about switching group and username columns? – Máté Juhász – 2017-03-07T19:26:29.030

I would still have to look trough the whole table to find the duplicates. – ranbo – 2017-03-07T19:52:51.340

Answers

1

Use the initial Data and group it like the picture below You have to write:
Site A for each username
Read for each username
Group1 for each username
John and Philip like Michael in your example
=COUNTIFS($D$2:$D$11,D2,$B$2:$B$11,B2,$A$2:$A$11,A2)

Like the following:

enter image description here

yass

Posted 2017-03-07T19:12:33.637

Reputation: 2 409

The thing is that one user can be a duplicate but within different sites or permission type. In order for that to work I would have to manually select the range of all groups and permissions type. – ranbo – 2017-03-07T19:54:38.737

You have to repeat Sites, Groups, and permissions in that case and use countifs – yass – 2017-03-07T20:23:40.543

you mean repeat item labels @yass? – ranbo – 2017-03-07T20:25:56.083

In the same column repeat Site A Read and group1 for every username – yass – 2017-03-07T20:28:12.973