简体   繁体   English

是否可以使用条件格式来根据公式格式化多个列

[英]Is it possible to use conditional formatting to format multiple columns based on a formula

I'm currently making a spreadsheet with a bunch of parameters. 我目前正在制作一个包含大量参数的电子表格。 However, some sets of data will not have to include these parameters, so I want to be able to apply a greyfill color to multiple columns based on a "No" appearing in a different column. 但是,某些数据集不必包含这些参数,因此我希望能够根据出现在不同列中的“否”将灰度填充颜色应用于多个列。 So far, I've been able to only get this formatting to apply to one other column at a time, and I must duplicate the rule for every additional column I want it to apply to. 到目前为止,我一直只能将此格式设置应用于其他列,并且我必须为我希望它应用的每个其他列复制规则。 I got it to work so far by using the formula rule =H1:H10000="N", but when I choose to apply this to $K:$Q it will only grey out the relative rows in column K 到目前为止,我通过使用公式rule = H1:H10000 =“N”来实现它,但是当我选择将其应用于$ K:$ Q时,它只会使列K中的相对行变灰

  1. Select your range 选择您的范围
  2. check the row of the active cell (1 in this example): 检查活动单元格的行(本例中为1):

    在此输入图像描述

  3. Enter the following formula in your conditional formatting (replace 1 by the active cell's row): 在条件格式中输入以下公式(将活动单元格的行替换为1):

     =$H1="N" 

And that should do what you need. 这应该做你需要的。

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

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