简体   繁体   English

Excel基于其他列的条件格式

[英]Excel Conditional Formatting based on Other Column

I have two columns in Excel as shown on the picture below. 我在Excel中有两列,如下图所示。

在此输入图像描述

I need to apply conditional formatting in this way: 我需要以这种方式应用条件格式:

if row in B column contain "1", the cell A on the same row should change its color. 如果B列中的行包含“1”,则同一行上的单元格A应更改其颜色。 This needs to be applied only for the cell in A column, not whole row. 这只需要应用于A列中的单元格,而不是整行。 Is there any option how to do this? 有什么选择怎么做?

Follow these steps and your problem will be solved ;) 请按照以下步骤解决您的问题;)

  1. Set your formula to =$B2=1 将公式设置为=$B2=1
  2. Select the fill color Yellow 选择填充颜色Yellow
  3. Applies to =$A$2:$A$7 适用于=$A$2:$A$7
  4. Once you click Apply, make sure your formula hasn't changed! 单击“应用”后,请确保您的公式未更改! (always happens to me) (总是发生在我身上)

在此输入图像描述

在此输入图像描述

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

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