![](/img/trans.png)
[英]Is it possible to conditionally format one cell with a databar based on a value in another cell?
[英]Conditionally format one cell based on values in a column
請使用標准填充格式化B2綠色,然后應用以下內容使用公式確定要格式化的單元格 , 格式化此公式為真的值:
=match(B2,L:L,0)>0
格式化(紅色)以適應和適用於B2。
假設您使用的是Excel 2007以上版本:
Conditional Formatting
> New Rule
菜單項 Use a formula to determine which cells to format
=ISNUMBER(MATCH(B2,$L$6:$L$100,0))
顯然改變$L$6:$L$100
以適合你,但是應該這樣做......
如何將其分為兩步。
嘗試在Cell B1
一個簡單的公式:
=ISNUMBER(MATCH(B2, L:L, 0))
如果匹配則返回TRUE
如果不匹配則返回FALSE
。 然后根據Cell B1
制作兩個條件規則。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.