≠

Excel Duplicate Remover

Remove duplicate spreadsheet rows using one or more selected columns

Separate multiple column names with commas. Leave blank to compare the complete row.

No file selected.

Excel Duplicate Remover — what it does

Remove duplicate rows from a worksheet by matching on one column, several columns, or the entire row, keeping either the first or last occurrence. Multi-column matching is the practical difference from simpler tools: two people sharing a surname are not duplicates, but two rows agreeing on name, email and date almost certainly are.

Worked example

A contact list with repeated email addresses (contacts-dupes.xlsx, worksheet Contacts), deduplicated on the email column with 'Keep first occurrence'.

Input — contacts-dupes.xlsx › Contacts, matching column: email

name       | email                  | department  | updated
Ann Lee    | ann.lee@example.com    | Sales       | 2026-01-10
Ben Ortiz  | ben.ortiz@example.com  | Engineering | 2026-01-12
Ann Lee    | ann.lee@example.com    | Marketing   | 2026-02-03
Chloe Park | chloe.park@example.com | Sales       | 2026-02-14
Ben Ortiz  | ben.ortiz@example.com  | Engineering | 2026-03-01
Dev Patel  | dev.patel@example.com  | Support     | 2026-03-05
Ann Lee    | ANN.LEE@example.com    | Sales       | 2026-03-20

Output — contacts-dupes-deduplicated.xlsx › Contacts

name       | email                  | department  | updated
Ann Lee    | ann.lee@example.com    | Sales       | 2026-01-10
Ben Ortiz  | ben.ortiz@example.com  | Engineering | 2026-01-12
Chloe Park | chloe.park@example.com | Sales       | 2026-02-14
Dev Patel  | dev.patel@example.com  | Support     | 2026-03-05
Ann Lee    | ANN.LEE@example.com    | Sales       | 2026-03-20

Status: 2 duplicates removed. The row with ANN.LEE@example.com survives because matching is exact: upper-case and lower-case addresses are different keys.

When this tool helps

  • Deduplicating a contact sheet where the same person was entered from several sources.
  • Cleaning double-keyed transactions by matching on reference, amount and date together.
  • Collapsing a log to the latest entry per key by sorting by date and keeping the last occurrence.

How to use it

  1. Choose the Excel file and the worksheet.
  2. List the column names to match on, or leave blank to compare whole rows.
  3. Choose keep first or keep last.
  4. Process and download the deduplicated workbook.

Accuracy, limits, and good practice

  • Whole-row comparison is strict: one differing cell anywhere keeps both rows. Use targeted columns to catch near-duplicates.
  • Trailing spaces and case differences defeat matching — run the blank cleaner first when data was hand-typed.
  • Keep-last only means "most recent" if the sheet is sorted chronologically; sort before deduplicating.
  • Count the rows before and after. A deduplication that removed far more than expected usually means the matching columns were too narrow.

Frequently asked questions

How do I match on several columns?

List the column names separated by commas. Rows must agree on every listed column to count as duplicates.

Can I see which rows were removed?

Compare the before and after with the worksheet comparison tool, which lists differing rows explicitly.

Does it work across worksheets?

Deduplication runs within the selected worksheet. Merge sheets first if duplicates may span them.

Does it preserve the original row order?

Surviving rows keep their relative order, so the sheet reads as it did minus the removed duplicates.

Is matching case-sensitive?

Yes. Keys are compared exactly, so ANN.LEE@example.com and ann.lee@example.com are two different values and both rows stay, as in the example. Normalise the column first if you need case-insensitive matching.

With 'Keep last occurrence', where does the kept row end up?

In the position of the first occurrence, holding the last occurrence's values: rerunning the example with keep-last puts Ann Lee's Marketing row (updated 2026-02-03) at the top where the Sales row was. The download is named <file>-deduplicated.xlsx and holds only the selected worksheet.

Related tools on this site

Everything above runs inside this page. Excel Duplicate Remover needs no account, no upload, and no server round trip — close the tab and nothing is left behind.

Excel 重複資料清理能做什麼

依單一欄位、多個欄位或整列比對,移除工作表中的重複資料列,並可選擇保留第一筆或最後一筆。多欄比對正是它與簡單工具的實用差異:兩個人同姓不算重複,但姓名、信箱與日期三者皆同的兩列,幾乎可以肯定是。

實際範例

一份 email 重複的聯絡人名單(contacts-dupes.xlsx 的 Contacts 工作表),以 email 欄比對並保留第一筆。

來源:contacts-dupes.xlsx › Contacts,比對欄位 email

name       | email                  | department  | updated
Ann Lee    | ann.lee@example.com    | Sales       | 2026-01-10
Ben Ortiz  | ben.ortiz@example.com  | Engineering | 2026-01-12
Ann Lee    | ann.lee@example.com    | Marketing   | 2026-02-03
Chloe Park | chloe.park@example.com | Sales       | 2026-02-14
Ben Ortiz  | ben.ortiz@example.com  | Engineering | 2026-03-01
Dev Patel  | dev.patel@example.com  | Support     | 2026-03-05
Ann Lee    | ANN.LEE@example.com    | Sales       | 2026-03-20

產生的檔案:contacts-dupes-deduplicated.xlsx › Contacts

name       | email                  | department  | updated
Ann Lee    | ann.lee@example.com    | Sales       | 2026-01-10
Ben Ortiz  | ben.ortiz@example.com  | Engineering | 2026-01-12
Chloe Park | chloe.park@example.com | Sales       | 2026-02-14
Dev Patel  | dev.patel@example.com  | Support     | 2026-03-05
Ann Lee    | ANN.LEE@example.com    | Sales       | 2026-03-20

狀態列顯示 2 duplicates removed。ANN.LEE@example.com 那列被留下,因為比對是完全相符,大小寫不同就算不同的鍵。

什麼時候用得上

  • 清理由多個來源重複輸入同一人的聯絡表。
  • 以單號、金額與日期聯合比對,清除重複入帳的交易。
  • 先依日期排序、保留最後一筆,把日誌收斂成每個鍵值的最新紀錄。

使用步驟

  1. 選擇 Excel 檔案與工作表。
  2. 列出比對用的欄位名稱,留空則比對整列。
  3. 選擇保留第一筆或最後一筆。
  4. 執行處理並下載去重後的活頁簿。

精確度、限制與實務建議

  • 整列比對非常嚴格:任何一格不同就兩列都留。想抓近似重複,請指定關鍵欄位。
  • 尾端空格與大小寫差異會讓比對失效——手動輸入的資料請先跑空白清理。
  • 「保留最後一筆」只有在工作表已按時間排序時才等於「最新」;去重前請先排序。
  • 請比對處理前後的列數。刪掉遠多於預期的資料,通常代表比對欄位選得太少。

常見問題

怎麼用多個欄位比對?

以逗號分隔列出欄位名稱。所有列出的欄位都相同,兩列才視為重複。

能看到被移除的是哪些列嗎?

用工作表比較工具比對處理前後兩份檔案,即可明確列出差異列。

可以跨工作表去重嗎?

去重在所選工作表內進行。若重複可能跨表,請先合併工作表。

會保留原本的列順序嗎?

保留下來的列維持原本的相對順序,因此工作表看起來就是原樣扣掉被移除的重複。

比對會區分大小寫嗎?

會。鍵值是逐字比對,ANN.LEE@example.com 與 ann.lee@example.com 視為兩個不同的值,兩列都會留下(如範例所示)。需要不分大小寫時,先把該欄統一大小寫再跑。

選「保留最後一筆」時,留下的那列會放在哪裡?

放在第一次比對到的位置,但內容是最後一筆的值:以保留最後一筆重跑範例,Ann Lee 的 Marketing 列(updated 2026-02-03)會頂替原本最上方的 Sales 列。下載檔名為「原檔名-deduplicated.xlsx」,只含所選的工作表。

本站相關工具

以上步驟全部在這個頁面內完成,Excel 重複資料清理 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。