Excel中使用公式进行条件格式化不起作用。

huangapple go评论59阅读模式
英文:

Conditional Formatting with a formula at Excel doesn't work

问题

我想按目标日期给线条上色。

我创建了这样的表格
Excel中使用公式进行条件格式化不起作用。

并设置了格式规则
Excel中使用公式进行条件格式化不起作用。
如果日期是“2023/02/21”,那一行的背景色应该更改为“粉红色”...

然而,它不起作用。

你能帮我吗?

我的期望是像这样改变背景颜色Excel中使用公式进行条件格式化不起作用。

英文:

I want to color the line by target date.

I made table like this
Excel中使用公式进行条件格式化不起作用。

and set formatting rule as
Excel中使用公式进行条件格式化不起作用。
if date is "2023/02/21", the background at that line should be changed to "pink"...

However, it doesn't work.

could you help me?

My expectation is changing background color like thisExcel中使用公式进行条件格式化不起作用。

答案1

得分: 1

它确实有效,因为"21/2/2023"表示的是文本而不是数字,你需要使用如下的代码:

=$C4="21/2/2023"*1

以获取目标日期为21/2/2023的高亮行,确保在你的示例中使用绝对相对引用,如$C4。

请参考屏幕截图中的应用范围:

Excel中使用公式进行条件格式化不起作用。

Excel中使用公式进行条件格式化不起作用。

英文:

It does work, since "21/2/2023" represents a text and not a number, you need to use something as follows

Excel中使用公式进行条件格式化不起作用。

=$C4="21/2/2023"*1

to get the row highlighted where the target dates is 21/2/2023, make it absolute relative reference as $C4 in your example .

Refer the applies to in screen-prints

Excel中使用公式进行条件格式化不起作用。

huangapple
  • 本文由 发表于 2023年3月7日 18:04:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/75660509.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定