查看: 1893|回复: 10
|
[Ms Excel]怎样找重叠(Duplicate)的Data?
[复制链接]
|
|
小弟有一个问题,有谁知道怎样找重叠(Duplicate)的Data 在Ms Excel里面。
这里我放一个例子。
1 | 200000205632 | 2 | 200000205660 | 3 | 200000205821 | 4 | 200000205993 | 5 | 200000206027 | 6 | 200000206095 | 7 | 200000206095 | 8 | 200000206552 | 9 | 200000206680 | 10 | 200000206782 | 11 | 200000206855 | 12 | 200000206856 | 13 | 200000206867 | 14 | 200000206893 | 15 | 200000206949 | 16 | 200000206950 | 17 | 200000206952 | 18 | 200000206981 | 19 | 200000206982 | 20 | 200000206984 | 21 | 200000207019 |
有什么方法找出6,7是重叠(Duplicate)的。因为我有时候要从几万data里面找出重叠的。很麻烦如果一个一个查。
帮帮我啊。。。
感恩。。。 |
|
|
|
|
|
|
|
发表于 6-2-2007 06:46 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 6-2-2007 07:33 PM
|
显示全部楼层
select columename,count(columename) from [Sheet1$B1:B21] where count(columename)>1 group by columename |
|
|
|
|
|
|
|

楼主 |
发表于 7-2-2007 09:09 AM
|
显示全部楼层
原帖由 friday 于 6-2-2007 06:46 PM 发表
用意是要把从叠的删除吗?
不是要删除,是要把它找出来。。
谢谢你的回复。。。 |
|
|
|
|
|
|
|

楼主 |
发表于 7-2-2007 09:11 AM
|
显示全部楼层
原帖由 tensaix2j 于 6-2-2007 07:33 PM 发表
select columename,count(columename) from where count(columename)>1 group by columename
谢谢你的回复。。。
我要把这些指令放在那里呢?
对不起,我是ms excel新手。。 |
|
|
|
|
|
|
|
发表于 7-2-2007 09:24 AM
|
显示全部楼层
很容易。You just use command countif. Example: you just type =countif(ur data range,cell data).eg. =countif(B2:B10,B2). Explans, means u compare the range from B2 to B10 with cell B2. after u typing 1 cell formula then u use ur mouse to drag it. If got duplicate data the formula will come out value 2. If the data more than 3 times the value will be 3. Anything still dun understand pls ask. Thanks. |
|
|
|
|
|
|
|
发表于 7-2-2007 09:47 AM
|
显示全部楼层
如果只要找从叠,看看这个方法:
Column A Column B
200000205632 =IF(COUNTIF($A$1:A1,A1)>1,"dup","ok") [把这formula往下拉或copy&paste)
200000205660 =IF(COUNTIF($A$1:A2,A2)>1,"dup","ok") |
|
|
|
|
|
|
|
发表于 7-2-2007 09:50 AM
|
显示全部楼层
那有从叠就会出现 'dup'.如果只要看到从叠就把ok拿掉, 留"". |
|
|
|
|
|
|
|
发表于 7-2-2007 09:52 AM
|
显示全部楼层
then all u need to do is to sort column B descending to get all the duplicates records. |
|
|
|
|
|
|
|

楼主 |
发表于 7-2-2007 09:53 AM
|
显示全部楼层
|
|
|
|
|
|
|

楼主 |
发表于 7-2-2007 09:56 AM
|
显示全部楼层
一下子看到这么多热心朋友的回复
真的很感动。。。
谢谢你们。。。。 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|