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:
=match(B2,L:L,0)>0
with formatting (red) to suit and Applies to B2.
Assuming you are using Excel 2007 onwards:
Conditional Formatting
> New Rule
menu item Use a formula to determine which cells to format
=ISNUMBER(MATCH(B2,$L$6:$L$100,0))
Obviously change the $L$6:$L$100
to suit you, but that should do it...
What about breaking this up into two steps.
Try putting a simple formula in 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. Then make two conditional rules based on Cell B1
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.