简体   繁体   English

当其他像元值等于特定值时为像元着色

[英]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. 在单元格A1我有值,如果值是“ abrakadabra”,则我希望单元格A2A3用绿色标记。

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" 插入公式=$A$1 = "abrakadabra"
  3. Apply desired format 应用所需的格式
  4. Open Conditional Formatting window again & apply the rule to desired cells ( A2:A3 ) 再次打开条件格式设置窗口并将规则应用于所需的单元格( 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". 选择单元格A2和A3,转到条件格式,然后作为规则类型,选择“使用公式确定要格式化的单元格”。 And the formula you can then add $A1="abrakadaba", choose the formatting you want, and click "OK". 然后可以添加公式$ A1 =“ abrakadaba”,选择所需的格式,然后单击“确定”。

[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. [编辑]根据下面的评论,我将A设为绝对,但我留下了1个亲戚,因为我假设您要将其复制到A行以下的其他单元格中。

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

相关问题 Excel手动单元格值等于要与其他条件一起使用的单元格范围内 - Excel Manual Cell Value Equals to In Range of Cells to be Used With Other Condition Excel在单元格等于值时执行获取相邻单元格的时间 - Excel Do while to obtain adjacent cells when cell equals value 如果两个单元格匹配并且第三个单元格等于特定值,则返回第四个单元格中的值 - If two cells match and third cell equals specific value the return the value in the fourth cell 在另一个单元格中有特定值时计数单元格 - Counting cells when in another cell there is specific value 如果其他单元格与特定值匹配,如何在公式中引用特定单元格 - how to reference a specific cell in a formula if other cells match a specific value Excel VBA颜色单元格基于其他两个单元格中的值 - Excel VBA color cell based on value in two other cells Excel:当其他单元格等于定义的值时,删除整行 - Excel: delete entire row when other cell equals a defined value 如果来自另一个单元格的值等于来自同一行的特定值,则连接现有单元格 - Concatenate existing cells if value from another cell equals a specific value from the same row 计算具有特定填充颜色和像元值的像元数 - Count the number of cells with both specific fill color and cell value 根据像元值对像元进行着色 - Color cells based on cell value
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM