1. Excel 重复数据
在日常工作中,经常要处理很多重复数据,如工号,电话号码等。下面列出几种解决方法:
- 使用软件
- 编程法
如果是有VBA基础的人,可以自己写一段语句。
也可以利用collection(集合)的特性,语句更简单。
下面的网址提供了一些函数
- 公式与条件格式化
The formula below will display the words "Duplicates" or "No Duplicates" indicating whether there are duplicates elements in the list A2:A11.
=IF(MAX(COUNTIF(A2:A11,A2:A11))>1,"Duplicates","No Duplicates")
再做一个筛选就可以了。
An alternative formula, one that will work with blank cells in the range, is shown below. Note that the entire formula should be entered in Excel on one line.
=IF(MAX(COUNTIF(INDIRECT("A2:A"&(MAX((A2:A11<>"")*ROW(A2:A11)))),
INDIRECT("A2:A"&(MAX((A2:A11<>"")*ROW(A2:A11))))))>1,"Duplicates","No Duplicates")
INDIRECT("A2:A"&(MAX((A2:A11<>"")*ROW(A2:A11))))))>1,"Duplicates","No Duplicates")
结合条件格式化进行高亮显示。
看看Microsoft网站上是怎么说的。
Techrepublic 提供的解决方案
转载于:https://blog.51cto.com/20194/194548