简体   繁体   English

如何根据前一个单元格是否包含某些文本来更改单元格填充颜色?

[英]How to change a cells fill color based on if the previous cell contains certain text?

How to change one cell fill color based on the text of the previous cell.如何根据上一个单元格的文本更改一个单元格填充颜色。

I know that I need to use conditional formatting along with using a formula to determine which cell to format, but I just can't figure out what formula to use.我知道我需要使用条件格式以及使用公式来确定要格式化的单元格,但我就是不知道要使用什么公式。

Depends on the condition, you can use Conditional Formatting on the Home Tab and set a rule under Use a formula to determine which cells to format there you can specify if for example =A1>5 Format it to Fill Green then select to what cells you want this rule to be applied.根据条件,您可以在“主页”选项卡上使用“条件格式”并在“使用公式确定要格式化的单元格”下设置规则,您可以指定例如=A1>5其设置为绿色,然后选择您要设置的单元格希望应用此规则。 You can find more information here: How to create rules with Conditional Formatting .您可以在此处找到更多信息: 如何使用条件格式创建规则

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

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