[英](Excel) Is there a way to conditional format a cell from a range of cells based on the value of an another cell?
I have a cell with a text, which is the place of an another cell that I want to highlight.我有一个带有文本的单元格,这是我要突出显示的另一个单元格的位置。 Lets say that it is the F6 cell, and in it, it says 'C6'.
假设它是 F6 单元格,在其中显示“C6”。 Is there a way to use conditional formatting to highlight the 'C6' cell ?
有没有办法使用条件格式来突出显示“C6”单元格? Any other cell can be inputted into the F6 cell and the formatting will highlight it, if it is in the Data range.
任何其他单元格都可以输入到 F6 单元格中,如果它在数据范围内,格式将突出显示它。
If you are happy to write $C$6 you could use CELL()
如果你愿意写 $C$6 你可以使用
CELL()
Define conditional formating on B4:D7
as =CELL("address",B4)=$F$6
=CELL("address",B4)
will return the reference of that cell in the from of $COLUMN$ROW (eg $C$6
for the cell C6
) and that you can then compare.将
B4:D7
上的条件格式定义为=CELL("address",B4)=$F$6
=CELL("address",B4)
将返回 $COLUMN$ROW 中该单元格的引用(例如$C$6
对于单元格C6
),然后您可以进行比较。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.