简体   繁体   English

如何使用条件格式填充列中的特定单元格

[英]How to Fill Specific Cell in a Column Using Conditional Formatting

On my $A:$A, I currently have a dropdown list of "Yes" and "No". 在我的$ A:$ A上,我当前有一个“是”和“否”的下拉列表。

For Example: 例如:

A1 = Yes then Fill B1 with black
A7 = No  then Fill B7 with Green

If Yes then Black
If No  then Green

I know that formula below can be used in a specific cell only. 我知道下面的公式只能在特定的单元格中使用。 How can we add a conditional formatting in an entire column B based on the the value of the cell in Column A? 我们如何基于列A中单元格的值在整个列B中添加条件格式?

=$A$1 <> "Yes"   -> B1 Conditional formatting

You pretty much have it. 你几乎拥有它。

在此处输入图片说明

  1. Select column B 选择列B
  2. Add a conditional formatting rule 添加条件格式设置规则
  3. Select "Use a formula to determine which cell to format" 选择“使用公式来确定要格式化的单元格”
  4. Enter: 输入:
    =A1 <> "Yes" = A1 <>“是”
    Note that it does not include the "$" before the "1". 需要注意的是它包括之前的“1”,“$”。 Omitting the "$" makes the reference relative, so it'll fill down much like a formula in the spreadsheet itself. 省略“ $”将使引用成为相对引用,因此它将像电子表格本身中的公式一样填充。

暂无
暂无

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

相关问题 使用“条件格式”对特定单元格进行颜色编码 - Color coding of a specific cell using “Conditional Formatting” 如何使用office-js获取由条件格式引起的Excel单元格填充颜色 - How to get an Excel cell fill color caused by conditional formatting using office-js 如何使用条件格式替换单元格中的文本 - How to Replace Text in a cell Using Conditional Formatting 使用条件格式填充颜色 - Fill colours using conditional formatting 使用其他单元格的条件格式 - Conditional Formatting using another cell 如果另一列中的相应行包含特定值,我想使用条件格式突出显示一列中的单元格 - I want to use conditional formatting to highlight a cell in one column if the corresponding line in another column contains a specific value 如何判断excel单元格是否使用VBA应用了条件格式 - how to tell if an excel cell has conditional formatting applied using VBA 如何在Excel中使用公式更改单元格的背景,无条件格式 - How to change the background of a cell in excel, by using a formula, no Conditional Formatting 输入某些信息后,如何使用条件格式更改单元格填充颜色 - How do I use conditional formatting to change a cell fill colour if certain information is entered 如何通过MS Excel 2010-VBA中的条件格式设置将单元格颜色作为填充颜色? - How to make cell color as fill color which is done by conditional formatting in MS Excel 2010 - VBA?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM