简体   繁体   English

基于单元格引用列表的Excel条件格式

[英]Excel conditional formatting based on list of cell references

I need to mark the changed cells in a new version of an Excel file. 我需要在新版本的Excel文件中标记更改的单元格。 Using the Compare files functionality of Excel 2013, I can get a list of changed cells: 使用Excel 2013的“ Compare files功能,我可以获得更改的单元格的列表:

在此处输入图片说明

Now I'd like to use that list of cell references to mark the corresponding cells in the Excel sheet through conditional formatting . 现在,我想使用该单元格引用列表通过conditional formatting在Excel工作表中标记相应的单元conditional formatting

在此处输入图片说明

How do I do that? 我怎么做? (There are hundreds of cell references, so I do not want to do it manually.) (有数百个单元格引用,所以我不想手动进行。)

You could try putting this as a formula into Conditional Formatting:- 您可以尝试将其作为公式放入条件格式中:

=NOT(ISERROR(MATCH(SUBSTITUTE(ADDRESS(ROW(),COLUMN()),"$",""),Changes,0)))

where Changes is the range where you have your list of cells that don't match. 其中,更改是您具有不匹配的单元格列表的范围。 I'm assuming that your list of changes do not have $ signs in them. 我假设您的更改列表中没有$符号。

Here is a much more concise version of the formula as explained in the comment below. 这是公式的更简洁版本,如以下注释中所述。

=MATCH(ADDRESS(ROW(),COLUMN(),4),changes,0)

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

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