简体   繁体   English

Excel 动态行条件格式

[英]Excel Dynamic Row Conditional Formatting

So this is supposed to be a Schedule 30/31 Days on $A and Hours Worked on $B Excel Page所以这应该是 $A 上的计划 30/31 天和 $B 上的工作时间Excel 页面

Which I want to automate the change of colors by using a formula with the next characteristics:我想通过使用具有以下特征的公式自动更改 colors :

  1. If $B has Text Or Numbers It changes to gray AND the $A on the same row should also change to gray如果 $B 有文本或数字它会变为灰色并且同一行上的 $A 也应该变为灰色
  2. If $B doesn't have anything neither $A nor $B2 should change color如果 $B 没有任何东西,$A 和 $B2 都不应该改变颜色

I have used this but it only works if I apply the rule to each row我已经使用了这个,但只有当我将规则应用于每一行时它才有效

Conditional Formula条件公式

So I'm searching for a way to make it automatic this is what I got until now: Testing所以我正在寻找一种让它自动化的方法,这就是我到目前为止所得到的:测试

All I need to change is the start I need somehow to make it not do `COL()*LIN()` but kind of appending $B and getting the row with LIN() = $BLIN() doesn't work ofc我需要改变的只是开始,我需要以某种方式使它不执行`COL()*LIN()`,但是附加 $B 并使用 LIN() = $BLIN() 获取行不起作用

Yea Thanks both @Wizhi and @Harun24HR only 1 rule =$B1="" applied to =$A$1:$B$31 worked for me是的,感谢@Wizhi@Harun24HR只有 1 条规则 =$B1="" 应用于 =$A$1:$B$31 为我工作

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

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