3

有谁知道我如何快速隐藏/删除 sheet1 中包含 sheet2 中任何行信息的所有行?

它需要包含过滤器,因为它不是完全匹配的。

例如

表 1:

http://www.google.com/something/else
http://www.yahoo.com/whatever
www.microsoft.com/hahha

表2:

google.com

所以最终结果将是 Sheet1 中的第一行将被隐藏

在实践中,我在 sheet1 和 Sheet2 中处理数千行。

为了澄清,我实际上是在尝试使用超过 2 个值的 contains 过滤器 - 默认过滤器只允许 2 个值。

我也在使用 Excel for Mac 2011。

4

2 回答 2

4

You can do this quickly with a simple helper column without a large range loop.

For simplicity as a sample:

  • Assuming your Sheet 1 list was in A1:A1000
  • your Sheet 2 partial list was in C1:C5 (on the same sheet for the picture below)
  • then in range B1:B1000 enter this array formula, =MAX(IF(ISERROR(FIND($C$1:$C$5,A1)),0,1))=1

(Enter as an array formula by pressing Ctrl+Shift+Enter)

  • Then AutoFilter the TRUErows (which flag any matches) and hide them

enter image description here

于 2013-07-02T12:30:59.517 回答
2

当我阅读@brettdj 发布的解决方案时,我认为它应该可以解决您的问题。

从您的评论看来,您在使用他的解决方案时遇到了空单元问题。你确定你用$C$1 : $c$5正确的值替换了吗?

在您的情况下,您应该首先参考右表(Sheet2如果您没有重命名它)然后是右列(假设您在 sheet2 的 A 列中有它)。

你应该写=MAX(IF(ISERROR(FIND(sheet2!$A$1:$A$5,sheet1!A1)),0,1))=1

于 2013-07-02T14:55:22.820 回答