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

kle*_*wis 4 excel

如果我在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
Run Code Online (Sandbox Code Playgroud)

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

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

column1  column2    column3
one      

two      one        info about one

three    two        info about two

four     
Run Code Online (Sandbox Code Playgroud)

小智 6

  1. 在"第2列"右侧插入新列
  2. 在此新列中添加"查找"标题
  3. 在此新列的第2行中插入此公式: =if(countif(A:A,B2) > 0,"true","false")
  4. 在所有剩余的行中填充该公式
  5. 全选并激活数据过滤器
  6. 按"真实"过滤"查找"列

(注意:您可能必须在"查找"列上复制并"仅粘贴>值"才能让Excel真正识别查找结果)