[英]Conditionally format one cell based on values in a column
Please format B2 green with standard fill, then apply the following Use a formula to determine which cells to format , Format values where this formula is true: 请使用标准填充格式化B2绿色,然后应用以下内容使用公式确定要格式化的单元格 , 格式化此公式为真的值:
=match(B2,L:L,0)>0
with formatting (red) to suit and Applies to B2. 格式化(红色)以适应和适用于B2。
Assuming you are using Excel 2007 onwards: 假设您使用的是Excel 2007以上版本:
Conditional Formatting
> New Rule
menu item 选择Cell B2并选择Conditional Formatting
> New Rule
菜单项 Use a formula to determine which cells to format
=ISNUMBER(MATCH(B2,$L$6:$L$100,0))
在公式栏中,输入=ISNUMBER(MATCH(B2,$L$6:$L$100,0))
Obviously change the $L$6:$L$100
to suit you, but that should do it... 显然改变$L$6:$L$100
以适合你,但是应该这样做......
What about breaking this up into two steps. 如何将其分为两步。
Try putting a simple formula in Cell B1
: 尝试在Cell B1
一个简单的公式:
=ISNUMBER(MATCH(B2, L:L, 0))
This will return a TRUE
if there's a match and a FALSE
if there is not a match. 如果匹配则返回TRUE
如果不匹配则返回FALSE
。 Then make two conditional rules based on Cell B1
. 然后根据Cell B1
制作两个条件规则。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.