在整个工作簿中应用条件格式标准(而不仅仅是在单个工作表中)

发布于 2024-09-09 23:31:45 字数 200 浏览 4 评论 0原文

我的目标是不仅消除sheet1中的重复值,而且包括sheet2和sheet3的值!因此,当我键入sheet1中已经存在的值时(例如我正在sheet2中工作),以激活复制条件。

当我尝试在任何条件格式规则中选择多个工作表时,出现此消息错误:

您不能使用对其他工作表或工作簿的引用作为条件格式设置条件

My goal is to eliminate duplicate value not only in sheet1, but to include values of sheet2 and sheet3 for example! So when I type a value which is already existing in sheet1 (for example I'm working in sheet2), to activate the condition of duplicating.

I get this message error when I try to select more than one sheet in any conditional formatting rule:

you cannot use references to other worksheets or workbooks for conditional formatting criteria

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

黑寡妇 2024-09-16 23:31:45

您必须编写像 Worksheet_Change 这样的事件来检查重复项。

You'll have to code an event like Worksheet_Change to check for the duplication.

苍白女子 2024-09-16 23:31:45

尽管您不能使用对其他工作表或工作簿的引用作为条件格式设置条件,但驻留在一个工作表中的工作簿范围的命名范围可以在同一本书的另一个工作表中访问。

因此,如果您在 Sheet1 和 Sheet2 中的 A1:A3 中输入 abc 并将其命名为 Sheet1!A1:A3 Range1,那么您可以通过应用以下公式来有条件地设置 Sheet2 A1:A3 的格式:

=COUNTIF(Range1,A1)>0

Despite you cannot use references to other worksheets or workbooks for conditional formatting criteria a named range of workbook scope that resides in one sheet is accessible in another in the same book.

So if you have say a, b and c in A1:A3 in Sheet1 and in Sheet2 and name Sheet1!A1:A3 Range1 then you can conditionally format Sheet2 A1:A3 by applying a formula such as:

=COUNTIF(Range1,A1)>0
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文