简体   繁体   English

将条件格式应用于整个工作表(不仅仅是一列)

[英]Apply conditional formatting to entire sheet (not only to one column)

I use the conditional formatting =ISEVEN(SUMPRODUCT(1/COUNTIF(A$1:A1,A$1:A1))) from this question which works perfectly.我用的条件格式=ISEVEN(SUMPRODUCT(1/COUNTIF(A$1:A1,A$1:A1)))这个问题,其完美地工作。
However, it somehow only applies to Column A although I tried to run it over the entire sheet.然而,它以某种方式只适用于Column A尽管我试图在整个工作表上运行它。

The setup currently looks like this:目前的设置如下所示:
(Sorry for only having it available in German) (抱歉只有德语版)

Screenshot 1:截图一:

在此处输入图片说明

Screenshot 2:截图2:

在此处输入图片说明

What do I need to change so it applies to the entire sheet and each row is completely coloured yellow and not only within Column A ?我需要更改什么才能适用于整个工作表并且每一行都完全着色为黄色,而不仅仅是在Column A内?

All you need to change is:所有你需要改变的是:

  • Select whole sheet选择整张纸

  • Apply conditional formatting rules based on formula and use:根据公式应用条件格式规则并使用:

     =ISEVEN(SUMPRODUCT(1/COUNTIF($A$1:$A1,$A$1:$A1)))

The difference is found in absolute vs. relative column references.差异在于绝对与相对列引用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM