简体   繁体   English

基于下拉值的 Excel 中的条件格式

[英]Conditional Formatting in Excel Based on Drop Down Value

Need solution: (Unable to find in group based on below example)需要解决方案:(根据以下示例无法在组中找到)

Format cell color based on drop down.根据下拉设置单元格颜色格式。

Example例子

If A1 Drop down value 'Shirt' then color A2, A5 and A6 as yellow.如果 A1 下拉值“衬衫”,则将 A2、A5 和 A6 着色为黄色。

If A1 Drop down value 'Tie' then color A3, A7 and A9 as green.如果 A1 下拉值“平局”,则将 A3、A7 和 A9 着色为绿色。

User has to fill the highlighted columns if they select the value as Shirt or Tie.如果用户 select 值是衬衫或领带,则用户必须填写突出显示的列。

Two rules with formula:有公式的两条规则:

  • First:第一的:

    • Applies To: =$A$2,$A$5:$A$6适用于: =$A$2,$A$5:$A$6

    • Formula: =$A$1="Shirt"公式: =$A$1="Shirt"

  • Second:第二:

    • Applies To: =$A$3,$A$7,$A$9适用于: =$A$3,$A$7,$A$9

    • Formula: =$A$1="Tie"公式: =$A$1="Tie"

在此处输入图像描述

在此处输入图像描述

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

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