LibreOffice Calc · Data cleanup · Beginner
Remove Duplicate Values in LibreOffice Calc
Remove duplicate values in LibreOffice Calc with Standard Filter, No duplications and a copy-to destination. Review duplicate rows with Data > Duplicates in 26.2.
Documentation checked; independent data checks recorded; native execution not performed · Editorial standards
To remove duplicate values in LibreOffice Calc, first decide whether you need unique values from one column or duplicate records across several columns. Keep an untouched original. Use the legacy Standard Filter copy-out method for a single-column list, or review records with Data → Duplicates before considering removal.
Version and evidence scope: the newer dialog below is documented in Calc Guide 26.2, Chapter 2, “Handling duplicate records.” These are English desktop, menu-bar instructions, using the guide’s Windows/Linux conventions; macOS menu names and shortcuts can differ. Other releases, locales and web products are not assumed equivalent. The linked latest Help currently identifies itself as 26.8, not 26.2. No native Calc session or screenshot was used for this tutorial. Calc Guide 26.2
Multi-column example: an exact duplicate is not an ID conflict
Enter this table in A1:D6 on a disposable sheet, with the four headings in row 1:
| OrderID | Product | Quantity | Note |
|---|---|---|---|
| O101 | Pen | 2 | Original |
| O102 | Pad | 1 | Original |
| O101 | Pen | 2 | Original |
| O101 | Pen | 3 | Correction |
| O103 | Clip | 4 | Original |
Alternatively, use the existing shared duplicate-orders CSV. Its directory name comes from another tutorial, but the file is generic comma-separated text with these same four fields and five records, not an ONLYOFFICE-specific workbook or a Calc-tested download. Check that it occupies four columns before continuing.
Here, all four fields define an exact duplicate. Sheet rows 2 and 4 contain identical records. Row 5 has the same OrderID but a different quantity and note: it is a conflict to review, not a redundant copy to discard.
| Check | Original input | After keeping one copy of each exact record |
|---|---|---|
| Data records, excluding the header | 5 | 4 |
| Quantity total | 12 | 10 |
| Distinct OrderIDs | 3 | 3 |
The arithmetic is 2 + 1 + 2 + 3 + 4 = 12, then 12 − 2 = 10. These are independently checked data expectations, not observed Calc results. The remaining four distinct records must still include both the quantity-2 Original and quantity-3 Correction for O101. They are an audit dataset, not a reconciled order ledger: deciding whether a correction supersedes an original requires a separate business rule.
Comparing OrderID alone instead creates just three key groups, conflating the correction with the two original entries. Do not turn that grouping into a deletion rule or assume which O101 record would survive.
Review with Data → Duplicates in Calc 26.2
- Preserve the original file and work on a separate copy containing the complete table. Keep unrelated notes, totals and other tables away from the practice area.
- Select the full A1:D6 range, not just OrderID.
- Open Data → Duplicates. Choose comparison by Rows and enable Header for row 1.
- Compare All fields for this exact-record exercise, including Quantity and Note.
- Choose Select, rather than Remove, for the first review. The documented distinction is selection versus deletion. Calc Guide 26.2, “Handling duplicate records”
The text sources give these settings, not a separate confirmation-button sequence. If applying Select is unclear in your installed dialog, stop and consult its Help rather than guessing.
Rows versus Columns: use Rows when each record runs across a row, as here. Columns is for records laid out vertically, one record per column; its header is the first column. Compare by determines which fields participate in matching, not which parts of a record are safe to discard. Latest Help describes these controls separately. Handle Duplicate Records — latest Help
The sources do not specify exactly which matching occurrences Select highlights, which occurrence Remove retains, or whether dialog settings persist. This tutorial therefore does not promise a highlighted-cell count or a “keep first” rule. Inspect the actual selection and compare the original rows yourself. Do not press Delete as a substitute for the dialog’s Remove action.
Before any removal
If you decide to try Remove, use only the disposable copy. Reselect the entire original table range before reopening the dialog; do not rely on the subset selected by the review step. Recheck Rows, Header and all four comparison fields.
Removal affects records within the selected range and shifts cells to fill the gaps: upward for row comparisons, leftward for column comparisons. It is not a promise to delete whole worksheet rows or columns and keep surrounding data aligned. Handle Duplicate Records — removal note
This is why selecting only A1:A6 in a four-column order table is unsafe: IDs could become detached from products, quantities and notes. Even with the full table selected, inspect adjacent data and formulas before trusting the result. Check the four-record/ten-unit expectation and the correction’s presence, not just the total number of rows.
If anything is unexpected, stop and discard the disposable copy. Recreate it from the untouched original and check the range and comparison fields again. Do not overwrite the original merely because a duplicate count looks plausible.
Legacy route: copy a single-column unique list
Standard Filter remains useful when you want a separate list rather than deleting records in place. The official Help example is specifically a single column; it is not a specification for multi-column key-based cleanup. Removing Duplicate Values
Enter this data in A1:A6:
| Row | A: City |
|---|---|
| 1 | City |
| 2 | Kingston |
| 3 | Ottawa |
| 4 | Kingston |
| 5 | Toronto |
| 6 | Ottawa |
You want a result containing Kingston, Ottawa and Toronto once each.
- Select your source column, including the header if present (
A1:A6). - Choose Data → More Filters → Standard Filter.
- Set the relevant field, use Condition =, and choose Not Empty as the value.
- Open Options and enable No duplications.
- Enable Range contains column labels because A1 is a header.
- Enable Copy results and specify an empty destination such as
C1. - Confirm and inspect the output. The unique city values should appear once each.
Use this example on a different practice sheet from the order table: C1 is only an empty destination in the city exercise. Keep the original list until you have checked the copied output.
Troubleshooting
- The correction disappeared: check whether you compared only OrderID, or excluded Quantity and Note. Restore a clean copy; deduplicating by ID is not the same as removing exact records.
- Labels were processed, or the first record was skipped: check both the selected range and Header. This example includes headings; a headerless range needs different settings.
- Data no longer lines up: stop before saving over the original. Check whether you selected only part of the table or used Columns for row-oriented records. Recover from the untouched file.
- Data → Duplicates is absent or looks different: check your installed version and its Help. Do not assume that an older release or a web product exposes this 26.2-documented workflow. The single-column copy-out route remains a separate option where available.
- Apparently identical text remains separate: inspect spaces and capitalization before deciding it is a duplicate. In the legacy Standard Filter workflow, No duplications is case-sensitive, so
KingstonandKINGSTONcan remain distinct. That documented behavior is not a verified case-sensitivity rule for the newer dialog. Legacy filter note
For suspicious text, inspect =LEN(A2) or review a temporary helper such as =UPPER(TRIM(A2)) before replacing any original names. These are inspection aids, not a universal identity rule: normalization can merge names you intended to keep separate. For counting rather than removing duplicates, see COUNTIF and COUNTIF returns zero.
Checked 28 October 2026: first-party documentation and the example’s record counts and sums. Exact installed-build behavior, selection/retention details, save/reopen behavior and cross-platform parity remain unverified; no native removal was performed.