[英]Seeking conditional formatting formula based on date and another cell's value
Example: 例:
Conditional Formatting > New Rule > Use a formula to determine which cells to format
条件格式>新规则>使用公式来确定要格式化的单元格
Green: = A1 = "Closed"
绿色:
= A1 = "Closed"
Red: = AND(OR(A1="major", A1="minor"),B1<NOW())
红色:
= AND(OR(A1="major", A1="minor"),B1<NOW())
Apply desired format. 应用所需的格式。
Your rules should look like below once complete. 完成后,您的规则应如下所示。 To get to this screen to check:
要进入此屏幕进行检查:
Conditional Formatting > Manage Rules
条件格式>管理规则
You need two conditional formatting. 您需要两种条件格式。 (Apply to
B:B
) (适用于
B:B
)
For Green: 对于绿色:
=IF(A2="Closed",TRUE,FALSE)
For Red: 对于红色:
=IF(AND(OR(A2="Minor",A2="Major"),B2<TODAY(),B2<>""),TRUE,FALSE)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.