两列的条件格式

发布于 2025-01-15 02:38:35 字数 404 浏览 2 评论 0 原文

我正在寻找有关 Google 表格中条件格式的信息。如果 L 列中的单元格存在两次并且 K 列同一行中的数据相同,我想将 L 列中的单元格设置为红色。

通过在互联网上搜索,我发现如果单元格存在多次,如何将其置于红色,但我不知道如何在 K 列上添加检查( =NB.SI($L2:$L; $L2)>1)。

下面是我的表格文件的屏幕截图。

输入图片description here

可以看到单元格变成红色,并且K列中的数据不同。

你能帮我解决这个问题吗?我对条件格式根本不适应。

I am looking for information about conditional formatting in Google Sheets. I would like to put the cell in column L in red if it exists twice AND if the data in the same row in column K is the same.

By searching on the internet, I found how to put the cell in red if it exists more than once but I don't see how to add in addition a check on the K column ( =NB.SI($L2:$L;$L2)>1 ).

Below is a screenshot of my Sheets file.

enter image description here

You can see that the cells turn red and the data in the K columns are different.

Could you help me with this please? I am not comfortable with conditional formatting at all.

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

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

发布评论

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

评论(1

2025-01-22 02:38:35

在条件格式设置

=if(COUNTIF(L:L,L1)>1,countif(K:K,K1)>1)

在此处输入图像描述

Try this formula in conditional formatting setting

=if(COUNTIF(L:L,L1)>1,countif(K:K,K1)>1)

enter image description here

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