简体   繁体   中英

Color cells when other cell value equals specific value

The best way to ask this question is to give an example:

in cell A1 I have value, if the value is "abrakadabra" I want the cells A2 and A3 being marked in green color.

How can I do it using the Conditional Formatting?

Thanks

  1. Navigate to: Conditional Formatting > New Rule > Use a formula to determine which cells to format
  2. Insert formula =$A$1 = "abrakadabra"
  3. Apply desired format
  4. Open Conditional Formatting window again & apply the rule to desired cells ( A2:A3 )

在此处输入图片说明 在此处输入图片说明

Select cells A2 and A3, go to conditional formatting, and as rule type, choose "Use a formula to determine which cells to format". And the formula you can then add $A1="abrakadaba", choose the formatting you want, and click "OK".

[EDIT] Based on comment below, I made the A absolute, but I left the 1 relative, as I assume you want to copy this to other cells below row A.

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