如果单元格值存在于另一列,请保留行

如果我在Excel中有以下3列布局…

column1 column2 column3 one three info about three two one info about one three two info about two four six info about six seven info about seven eight info about eight 

…如何删除或隐藏或删除列2中没有列1值的行?

我的最终结果应该是这样的

 column1 column2 column3 one two one info about one three two info about two four 

  1. 在“第2列”右侧插入一个新列
  2. 将“查找”标题添加到这个新列
  3. 在此新列的第2行中插入此公式: =if(countif(A:A,B2) > 0,"true","false")
  4. 向下填充所有剩余的行
  5. select全部并激活数据filter
  6. 按“true”过滤“查找”列

(注意:您可能需要在“查找”列中复制并粘贴>值才能让excel真正识别查找结果)

您可以使用VLOOKUP来确定column2中的值是否存在于column1中。 请检查这个文件 。 也有一个例子。