Forum Discussion
How to remove values that show up more than once NOT just duplicates
- Apr 16, 2020
Couple of more variants as here
To simplify a bit we will ignore dynamic ranges. Formulas could be
In E2
=IFNA( LOOKUP(2, 1/((COUNTIF($E$1:E1,$A$2:$A$100)=0)* (COUNTIF($A$2:$A$100,$A$2:$A$100)=1)), $A$2:$A$100), "")
in F2
=IFNA(INDEX(B$2:B$10,MATCH($E2,$A$2:$A$10,0)),"")
in G2
=IFNA(INDEX(C$2:C$10,MATCH($E2,$A$2:$A$10,0)),"")
and drag all of them down till empty cells appear.
If data shall be in same order as in source table, when in I2
=IFERROR( INDEX( $A$2:$A$100, AGGREGATE(15,6, 1/((COUNTIF($I$1:I1,$A$2:$A$100)=0)* (COUNTIF($A$2:$A$100,$A$2:$A$100)=1))* (ROW($A$2:$A$100)-ROW($A$1)),1 ) ), "")
Rest is similar.
Hello,
Please use
=FILTER(INDIRECT("A1:C" & COUNTA(A:A)),COUNTIF(A:A,INDIRECT("A1:A" & COUNTA(A:A)))=1,"")
This formula should work as is. Just make sure you put the formula in a different column than the ones with the data. I would attach the excel file back to you but I do not see a button to add it back unfortunately.
Please let me know if you have any other questions.
Regards,
-Jack
- Jack_BumgarnerApr 15, 2020Former Employee
Also, for the formula to work I think you need Excel 2016, Office 365, or anything newer for it to work.
https://support.microsoft.com/en-us/office/dynamic-array-formulas-and-spilled-array-behavior-205c6b06-03ba-4151-89a1-87a7eb36e531?ui=en-us&rs=en-us&ad=us
The above link is a good resource for explaining SPILL/Dynamic formulas. If the formula doesn't work let me know.
- shade206Apr 16, 2020Brass ContributorIs there a solution for IF you do not have 2016 365 i.e. another way to do this?
- Jack_BumgarnerApr 16, 2020Former Employee
Hello,
For older Excel files, one thing you can try instead is use the COUNTIF() in a separate empty column and then you can filter down manually.
Use the formula
=COUNTIF(A:A,A1)
in the empty column instead. Drag the formula down to the bottom of your data. Afterward you should be able to manually filter down to lines with a "1" and you should get the same result.
Let me know if this doesn't work.
Regards,
-Jack B.
- shade206Apr 16, 2020Brass ContributorThank you for your efforts. However, when i copy and past these formula into a cell of a empty column its says "Function is not valid"