Excel 条件格式:将 sheet 1 中的 id 描述与 sheet 2 中的 id 描述进行比较,如果不匹配,则突出显示 sheet 2 中的描述

Excel Conditional Formatting: compare id description in sheet 1 to id description in sheet 2 if not a match highlight description in sheet 2

我们有两个 sheets sheet1 有 ID、描述、方法,sheet2 有 ID、描述、方法

sheet1 包含这样的值:

ID 描述方法

1|a|z

2|b|z

3|c|z

4|d|y

sheet2 包含这样的值:

ID 描述方法

1 b z

1 个

2bz

3cz

4 天

4 岁

我需要将 sheet 1 中的 ID 与 sheet 2 中的 ID 进行匹配,并检查 sheet 1 中的描述是否匹配 sheet 2 中的描述否则突出显示 sheet 2 中的描述。

到目前为止,如果 id 不在两个 sheet 中,我可以做一个条件格式化程序,但我不确定如何通过匹配 id 然后比较描述来做一个条件格式化程序,如果它们与描述不符已在 sheet 中突出显示 2. 非常感谢任何帮助。

Select Sheet2 中的描述列并根据此公式创建 CFR,

=not(countifs(sheet1!a:a, sheet2!a1, sheet1!b:b, sheet2!b1))

使用填充颜色设置格式。如果不是两列匹配,它将被填充。