← Back to all guides
Technology · 4 min READ

How to Remove Duplicate Rows in LibreOffice Calc

How to Remove Duplicate Rows in LibreOffice Calc guide illustration

Preview duplicate rows, compare an entire record or just its key fields, and check that removing a repeated import leaves valid inventory counts intact.

Quick note

Follow these steps at your own pace. Check product terms and prices directly with providers before purchasing.

Quick answer

In LibreOffice Calc 25.2 or later, select the entire table and open Data → Duplicates. Choose Rows, indicate whether the range includes a header, and select the fields to compare. Preview matches with Select before running Remove on the working copy.

Decide what counts as the same record

Suppose you are combining two files from the same warehouse stocktake. The same item can sit in two bins. Removing every repeated item code would erase real stock. Make a small test where you already know which row should go.

WarehouseBinItem codeOn hand
WestB-4004276
WestB-4004276
WestC-2004272
EastA-1004278

In this snapshot only the second row repeats the first. The correct result is three records and 16 units, down from four records and 22 units. Comparing all four fields finds the exact repeat. Comparing warehouse, bin and item code can also flag two counts for the same location that disagree. If one count is six and another is nine, check the original count sheets or timestamps before deleting either.

Preview the rows on a working copy

  1. Copy the table to an empty sheet. Include the headers and every column belonging to a record, even notes at the far right. Record the starting row count. If an entire CSV landed in column A, separate the fields into columns first.
  2. For the example, select A1:D5. Under Data → Duplicates, set Compare to Rows and enable Header. Under Compare by, select all four fields for an exact match. Keep the sheet selection as wide as the whole table.
  3. Choose Select and confirm. Compare the flagged record with its counterpart. Check fields you might have excluded, especially dates and notes. Several unrelated records can share a blank identifier.
  4. Reselect the original full range, open the command again, confirm the fields, and choose Remove. Calc shifts cells upward inside the selected range. Selecting just the item codes could detach them from their quantities.

If your version has no Duplicates command

For a separate copy of distinct whole rows, select the full source table and choose Data → More Filters → Standard Filter. Pick a field populated on every valid row, such as Warehouse here. Set the condition to = and choose the Not Empty value. Expand Options, enable Range contains column labels and No duplication, then enable Copy results to. Choose the top-left cell of an empty output area and confirm. A field with missing values would also exclude those rows.

Reconcile the result

Check that West B-4 appears once, West C-2 still has two units, and East A-1 still has eight. On a real report, check a known location and its subtotal as well as the row count. For a breakdown across all locations, build a two-way pivot with warehouses and item codes from the cleaned records. If a valid record vanished, undo and revisit the comparison fields. If a colleague needs to repeat the check in Sheets, the Google Sheets guide to comparing two columns for duplicates gives the corresponding steps there.

LibreOffice’s duplicate-record options · Standard Filter options

SHARE THIS GUIDE

Know someone who could use this?

DISCUSSION

Comments

Read or join the discussion.