Forum Discussion

zchahin's avatar
zchahin
Copper Contributor
Aug 23, 2024
Solved

Automate: Find matching pairs between 2 columns with comma separated values & then vlookup + delete

Hi,    I currently have a list of 80,000 patents (col. A) with their respective backward and forward citations (col. B&C).    I want to write a formula in column D that identifies a match between...
  • Rodrigo_'s avatar
    Aug 24, 2024

    zchahin 
    It could be done using FILTER function to sort out first the returned values in column D, then using the ISNUMBER and MATCH function from Column D, to identify which Patent Numbers was matched on column D.


    formula for E2

    =LET(
    filteredValues, FILTER($D$2:$D$100, $D$2:$D$100<>""),
    IF(ISNUMBER(MATCH(A2, filteredValues, 0)), "DELETE", "")
    )

    Sample file: zchahin.xlsx
     
    If you're using an older version of excel
    you'll need to add another column to achieve this, (or this could also be done by creating name range)

    array formula in E2:
    =IFERROR(INDEX($D$2:$D$100, SMALL(IF($D$2:$D$100<>"", ROW($D$2:$D$100)-ROW($D$2)+1), ROW(1:1))), "")

     

    formula in F2:
    =IF(ISNUMBER(MATCH(A2, $E$2:$E$100, 0)), "DELETE", "")

Resources