Search code examples
excelexcel-formulavlookup

Excel: Finding items in a column in another column and deleting them


I'm trying to use the following names (Nancy, Daniel, Sergio, Patty) that are listed on the right-side column (column H) finding them on Table that is on the left-side and deleting them (along its whole row).

enter image description here

Here's how the final table would look like with the deleted rows:

enter image description here

Could this be done with a simple VLOOKUP formula?


Solution

  • You can't delete rows using formula. For doing that you would need VBA code. But with FILTER formula you could crate new table excluding list in H:

    =FILTER(A1:C7,ISNA(MATCH(A1:A7,H2:H4,0)))
    

    Result:

    enter image description here