简体   繁体   中英

Excel conditional formatting based on list of cell references

I need to mark the changed cells in a new version of an Excel file. Using the Compare files functionality of Excel 2013, I can get a list of changed cells:

在此处输入图片说明

Now I'd like to use that list of cell references to mark the corresponding cells in the Excel sheet through 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)

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.

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