简体   繁体   English

Excel 中的单元格条件格式

[英]Cell by cell conditional formatting in Excel

I have Table1 and Table2 in Excel and would like compare each cell of Table2 with the corresponding cell of Table1 and colour the cell in Table2 grey, iff it is not identical with the corresponding cell in Table1.我在 Excel 中有 Table1 和 Table2,想将 Table2 的每个单元格与 Table1 的相应单元格进行比较,并将 Table2 中的单元格着色为灰色,如果它与 Table1 中的相应单元格不同。

I know how to do it for single cells, for instance for cell F8:我知道如何为单个单元格执行此操作,例如单元格 F8:

=F8<>Table1!F8 =F8<>Table1!F8

How do I, however, proceed to apply these comparisons and actions to each cell of Table2?但是,我如何继续将这些比较和操作应用于表 2 的每个单元格?

You must have both table formatted as table.您必须将两个表格都格式化为表格。 If you use your formula in one cell after moment whole table will be full.如果您在一个单元格中使用您的公式之后整个表格将被填满。 Then you use conditional- formatting然后你使用条件格式

You should specify correct Applies to range and then in formula use first upper left cells of both tables:您应该指定正确的Applies to范围,然后在公式中使用两个表的第一个左上角单元格:

在此处输入图片说明

ie if tou tables are in sheets Table1 and Table2 from cells F8 to Z1000 , then in sheet Table2 open CF dialog and specify in Applies to F8:Z1000 and in Formula =F8<>Table1!F8 .即,如果 tou 表在表格Table1Table2从单元格F8Z1000 ,则在表格Table2打开 CF 对话框并在Applies to F8:Z1000Formula =F8<>Table1!F8 That's all.就这样。

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

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