Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete duplicate rows in calc?

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

like image 927
user2120088 Avatar asked Mar 19 '14 16:03

user2120088


People also ask

How do I remove duplicates in Openoffice Calc?

After that Go to Data >> Filter >> Standard Filter. Click on More Options. This will take you to more advanced options. Click on No Duplicates.

How do I remove duplicates in Libreoffice Calc?

To remove duplicate lines in LibreOffice CalcSet the filter rule: "ColumnA = Not empty". Expand Options, and check (enable) the box "No duplications". Click OK to execute the filter. Duplicate lines are now removed.

How do I find duplicates in Openoffice Calc?

Select the column, select "Conditional Formatting" - "Highlight Cells Rules" - "Duplicate Values" and voilá! All values that were duplicate on this column it was paint with color red, for example.


Video Answer


1 Answers

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

like image 92
Matt Avatar answered Oct 07 '22 20:10

Matt