Jan 14 2019 08:40 AM
I have a large Excel file that I combined from 2 different reports. Column A is "User ID". I want to remove the rows where User ID match. I can't use the Remove Duplicates option because only one of the rows would be removed. I want BOTH rows removed so I am left with only the User IDs that were NOT on both reports.
Jan 14 2019 10:23 AM
Hi,
Please take a look at the screenshot below.
Is that what you asking for?
If so, you can use COUNTIF function in a helper column to return the number of occurrences for each ID, then sort it from smallest to largest, and then delete the rows that are greater than one.
You can also use Power Query to do so.
Please find the attached file.
Hope that helps
Jan 14 2019 10:30 AM
Yes, that is what I am asking for, thank you. Unfortunately, I don't know how to use the COUNTIF function or perform a Power Query. Do you have a job aid or instructions I could follow?
Jan 14 2019 10:48 AM
Hi,
I would recommend you to use COUNTIF as the Power Query need multiple steps that are difficult to explain here.
This is the COUNTIF formula:
=COUNTIF($A$2:$A$7,A2)
After you enter this formula in a new column as the screenshot above, you have to sort the column from smallest to largest, and then delete the entire rows that are greater than one.
To learn more about COUNTIF, please check out this link.
Hope that makes sense.
Jan 14 2019 10:58 AM
Can you tell me what I'm doing wrong? See attached please.
Jan 14 2019 11:08 AM
This formula is correct!
But you need to put it in cell B2 and drag it down.
Then sort the column and delete the dups rows.
The dups starts from row 2891, just select them all and press delete.
Jan 14 2019 11:36 AM
Thank you! You have been really helpful!