Google Sheets 检查重复数据并高亮

Time needed: 1 minute

  1. 选中

    选中需要检测的列(也可以选择多列;本文介绍的方法支持同时查找多列数据),点击「format/格式」,找到「conditional formatting/条件格式」。

  2. 公式

    打开之后,在「format rules/格式规则」下拉菜单中选择「custom formula is/自定义公式为」。我选择的应用范围是 A1:A1001,输入「=COUNTIF($A$1:$A$1001,A1)>1」;如果你选择的是其他列、或者是某一列中的部分数据,比如 B3:B100,那么相应改成「=COUNTIF($B$3:$B$100,B3)>1」,然后选择相应的「formatting style/格式样式」。我选择的是加上红色背景,可以看到,左侧的数据中,两个相同的数据「Elijah」已经红色高亮了。

  3. 保存

    保存就行啦。在 A1:A1001 这一列中,凡是新加入的数据,如果与已有数据重复,两个单元格都会自动高亮。

Derek Yang

生于湖南,先后在北京和广东学习与工作。2013年移居美国。EB-1 职业移民。非移民律师、非移民中介。Twitter @mrderekyang

Disclosure: We are an Amazon Associate. Some links on this website are affiliate links, which means we may earn a commission or receive a referral fee when you sign up or make a purchase through those links.

相关文章

没找到您想要的信息?
请使用我们强大的搜索工具!

Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Stock images sponsored by depositphotos.com | Skimlinks