简体   繁体   中英

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. You can find more information here: How to create rules with Conditional Formatting .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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