Forum Discussion

kadam062's avatar
kadam062
Copper Contributor
Apr 26, 2021

Remove unique values from a column using a filter from another column

Hi!

 

I have a spreadsheet that has column B with approximately 4000 letter/number strings and column C with 300. I want to delete all unique rows from column A, keeping column A sorted. 

 

I have tried =IF(ISERROR(MATCH(B2,$C$2:$C$229,0)),"Unique","Duplicate") but have had no luck. I also realized that certain cells have spaces before the text strings while the condition list does not.

 

Thanks, 

 

Kurtis

4 Replies

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    kadam062 Difficult to follow what you are doing without the file to look at, but perhaps this works:

     

    =IF(ISERROR(MATCH(TRIM(B2),$C$2:$C$229,0)),"Unique","Duplicate") 

     

     

    • kadam062's avatar
      kadam062
      Copper Contributor
      I have attached the file. Your trim suggestion worked in the helper column. Now I need to delete all rows that are unique.

Resources