简体   繁体   English

比较并突出显示Excel中的差异

[英]Compare and highlight difference in Excel

I have 2 excel workbook. 我有2个Excel工作簿。 The first workbook have only 1 sheet while the other workbook contains a few sheets. 第一个工作簿只有一张纸,而另一个工作簿只有几张纸。 Instead of having to manually search the value in the second worksheet base on the first, is there a way to compare and highlight differences? 不必在第一个工作表中手动搜索值,而是可以比较和突出显示差异?

Have tried Conditional Formatting with =A1<>Sheet2!A1 but it highlighted the whole column even though there should be matching values probably due to different arrangement of values. 曾尝试使用=A1<>Sheet2!A1条件格式设置,但它会突出显示整个列,即使可能存在匹配值也可能是由于值的排列方式不同。

Please refer to simplified example below. 请参考下面的简化示例。 I need to highlight the values in Workbook B that could not be found in Workbook A 我需要突出显示工作簿B中找不到的值,在工作簿B中

-Update- -更新-

Example

Excel workbook A: Excel工作簿A:

Sheet 1 工作表1

  1. B27 B27
  2. 124 124
  3. A25 A25
  4. 126 126
  5. 127 127
  6. A23 A23
  7. B24 B24
  8. 125 125
  9. A26 A26
  10. 123 123
  11. B23 B23
  12. A24 A24
  13. B25 B25
  14. B26 B26
  15. A27 A27
  16. C123 C123
  17. D789 D789
  18. AAZX AAZX
  19. ABCD A B C D

Excel workbook B: Excel工作簿B:

Sheet 1 工作表1

  1. 123 123
  2. 124 124
  3. 125 125
  4. 126 126
  5. 127 127
  6. N123 N123

Sheet 2 工作表2

  1. A23 A23
  2. A24 A24
  3. A25 A25
  4. A26 A26
  5. A27 A27
  6. N456 N456

Sheet 3 工作表3

  1. B23 B23
  2. B24 B24
  3. B25 B25
  4. B26 B26
  5. B27 B27
  6. N789 N789

If you have a recent version of Office, press the windows key and search for "spreadsheet compare". 如果您使用的是Office的最新版本,请按Windows键并搜索“电子表格比较”。 It enables you to compare two versions of a workbook. 它使您能够比较工作簿的两个版本。

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

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