Delete duplicate rows in calc?

旧街凉风 提交于 2019-12-06 03:34:33

问题


I have a column in openoffice calc with a set of codes. For example:

B1
B1
Br
Bh
Ht
C3
C3

So what I would like to do is delete all the duplicates so I am left with just:

Br
Bh
Ht

Any help much appreciated.

Cheers


回答1:


Select the entire range containing data to filter, then click on the menu

Data > Filter > Standard Filter

and:

  1. Use a condition that is always TRUE, like field1 = Not empty

  2. Click on the button more, select Remove Duplicate, select Copy to and put the address of an empty cell The whole range (without duplicate) will be analyzed and copied at that new address.

source

Or

For both Calc and Excel the quick and dirty solution would be

=COUNTIF($A:$A;$A1)
copied down for every entry in Column A.

All entries where the result is 1 can be filtered as new values.

Calc syntax for COUNTIF:

Source



来源:https://stackoverflow.com/questions/22511660/delete-duplicate-rows-in-calc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!