excel delete row if column contains value from to-remove-list

前端 未结 3 1567
醉酒成梦
醉酒成梦 2020-12-22 23:44
  1. Let\'s say that I\'ve got a sheet - number one - with over 5000 rows (say, columns \'A\' - \'H\' each).
  2. In
3条回答
  •  天命终不由人
    2020-12-23 00:30

    I've found a more reliable method (at least on Excel 2016 for Mac) is:

    Assuming your long list is in column A, and the list of things to be removed from this is in column B, then paste this into all the rows of column C:

    = IF(COUNTIF($B$2:$B$99999,A2)>0,"Delete","Keep")

    Then just sort the list by column C to find what you have to delete.

提交回复
热议问题