Google Sheets Remove Duplicates in Column: 3 Ways

How-to basics · Updated November 23, 2026

Yes, Google Sheets can remove duplicates in a column. The fastest built-in method is Data > Data cleanup > Remove duplicates, which deletes duplicate rows based on the selected column(s) directly in place. Alternatively, you can use the UNIQUE function to create a separate list of unique values, or use the Remove Duplicates add-on for more control. This article explains all three methods step by step, including how to handle common pitfalls like blank cells and formatting.

Why Duplicates Appear and Why They Matter

Duplicates in a spreadsheet usually come from merging imported data, copying and pasting lists, or collecting form responses over time. A column of email addresses, product SKUs, or customer IDs can easily contain repeated entries. Leaving them in place can skew counts, break lookup formulas like VLOOKUP, and cause mail merges to send the same message twice. Removing duplicates is a routine data-cleaning task that most spreadsheet users need at some point, and Google Sheets has several ways to do it depending on whether you want to modify the original data or keep it intact.

Method 1: Built-in Remove Duplicates Tool (In-Place)

This is the simplest method when you want to delete duplicate rows directly from your sheet. It works on a selected range or an entire sheet.

  1. Select the column (or range of columns) that contains the duplicates. For example, click the letter A to select the entire column.
  2. Go to the menu: Data > Data cleanup > Remove duplicates.
  3. A dialog box appears. If you selected a range, it will show the range. Check the box “Data has header row” if your first row is a header (like “Email” or “Product ID”).
  4. Click Remove duplicates.
  5. Google Sheets will tell you how many duplicate rows were removed and how many unique rows remain. Click Done.

This method permanently deletes the duplicate rows. It cannot be undone with Ctrl+Z if you close the sheet afterward, but immediately after the action, you can press Ctrl+Z (Windows) or Cmd+Z (Mac) to undo. Note that this tool considers a row a duplicate only if every selected column matches. If you select only column A, it will remove rows where column A has the same value, regardless of other columns. If you select multiple columns, it removes rows where all selected columns match.

Method 2: UNIQUE Function (Create a New List)

If you don’t want to alter your original data, the UNIQUE function creates a new list of unique values in a different location. This is especially useful when you need to keep the original data intact for audit or reference.

Assume your data is in column A, cells A1:A10, with A1 being a header. In cell C1, type:

=UNIQUE(A1:A10)

This returns a vertical list of unique values from A1:A10, ignoring blanks. If your data has no header and you want all unique values, use =UNIQUE(A:A) but note that this will include any blank cells as a single blank entry. To exclude blanks, you can wrap it with FILTER: =UNIQUE(FILTER(A:A, A:A<>"")).

The UNIQUE function is dynamic: if you change the source data, the unique list updates automatically. It works in Google Sheets and also in Microsoft Excel 365 and Excel 2021, but in Excel you need to use the same syntax. One key difference: in Excel, UNIQUE returns a spill range that can block other cells, while in Google Sheets it just fills down as needed.

Method 3: Add-ons and Conditional Formatting (For More Control)

For large datasets or when you need to see duplicates before deleting them, you can use conditional formatting to highlight duplicates first, then manually review. Select your column, go to Format > Conditional formatting. Under “Format cells if”, choose “Custom formula is” and enter:

=COUNTIF(A:A, A1) > 1

Adjust A:A and A1 to match your range. This highlights every cell that appears more than once. Then you can sort by color or manually delete rows. This method is safer if you want to review duplicates before removal.

For more advanced needs, the Google Workspace Marketplace has add-ons like “Remove Duplicates” or “Power Tools” that offer fuzzy matching (e.g., ignoring case or extra spaces) and the ability to remove duplicates based on a key column while keeping other columns’ values. These add-ons are free or paid, and they run within Google Sheets. However, for most users, the built-in tool is sufficient.

Choosing the Right Method for Your Situation

Here’s a quick guide to decide which method to use:

  • Need to delete duplicates from the original data? Use the built-in Remove duplicates tool.
  • Need to keep original data but get a clean list? Use the UNIQUE function in a new column or sheet.
  • Need to see duplicates before deleting? Use conditional formatting to highlight them, then manually remove.
  • Need to remove duplicates based on one column but keep the row with the latest date? Use the built-in tool with the “Data has header row” option, but first sort your data so the row you want to keep appears first. The tool keeps the first occurrence.
  • Need to remove duplicates that differ only by case or extra spaces? The built-in tool is case-sensitive and does not trim spaces. Use an add-on or first clean the data with TRIM and LOWER functions.

Common Problems and How to Avoid Them

Several issues can trip up users when removing duplicates:

  • Blank cells: The built-in tool treats blank cells as duplicates. If your column has many blanks, it will remove all but one blank row. To avoid this, filter out blanks first or use UNIQUE with FILTER.
  • Leading/trailing spaces: “Apple” and “ Apple ” are considered different. Use =TRIM(A:A) in a helper column to clean data first, then remove duplicates.
  • Case sensitivity: “apple” and “Apple” are different. Use =LOWER(A:A) in a helper column if you want them treated as the same.
  • Header row: If you forget to check “Data has header row”, your header might be deleted if it duplicates a value below. Always check that box if your first row is a header.
  • Data loss: The built-in tool deletes entire rows, not just the cell. If you have data in other columns that you want to keep, make sure you select the full range of columns you want to consider, or copy the unique values to a new location.

Google Sheets vs. Excel: Key Differences

Both Google Sheets and Excel have a Remove Duplicates feature, but the menu paths differ. In Excel, it is under Data > Remove Duplicates (in the Data Tools group). In Google Sheets, it is under Data > Data cleanup > Remove duplicates. The UNIQUE function works in both, but in Excel you need Excel 365 or 2021. Excel’s Remove Duplicates dialog also has a “My data has headers” checkbox, similar to Sheets. One major difference: Excel’s Remove Duplicates works on a selected range and can consider multiple columns, just like Sheets, but Excel’s version does not have a “data cleanup” submenu. Also, in Excel, the undo works the same way, but the tool is not available in Excel for the web (it is, but with a slightly different interface). For Google Sheets, all methods work in a web browser, and there is no desktop version.

Frequently Asked Questions

How do I remove duplicates in a single column without affecting other columns?

If you only want to remove duplicates from one column but keep the rows intact, you cannot use the built-in tool because it deletes entire rows. Instead, use the UNIQUE function to extract unique values to a new column, or use conditional formatting to highlight duplicates and then manually delete the rows that contain them (which will also delete other column data). If you need to keep other columns, you’ll have to decide which row to keep—the built-in tool always keeps the first occurrence.

Can I remove duplicates based on two columns at once?

Yes. Select both columns (e.g., A and B) before going to Data > Data cleanup > Remove duplicates. The tool will only remove rows where both columns match another row. For example, if you have first names in A and last names in B, a row with “John Smith” and another with “John Doe” are not duplicates because the last names differ.

Does the built-in tool work on an entire sheet?

Yes, if you select any single cell and then go to Data > Data cleanup > Remove duplicates, it will automatically detect the entire data range (all columns with data). It will ask if your data has a header row. Be careful: this will remove duplicate rows based on all columns, so if two rows are identical across every column, one is removed. If you want to remove duplicates based on only one column, you must select that column first.

What is the difference between UNIQUE and Remove duplicates?

UNIQUE is a function that returns a new list of unique values without altering the original data. Remove duplicates is a command that permanently deletes duplicate rows from the selected range. Use UNIQUE when you need to preserve the original data; use Remove duplicates when you want to clean the data in place.

How do I remove duplicates but keep the last occurrence instead of the first?

Google Sheets’ built-in tool always keeps the first occurrence. To keep the last occurrence, you need to sort your data in reverse order (e.g., by date descending) before running the tool. Then the last occurrence becomes the first in the sorted order, so it will be kept. Alternatively, use a helper column with a formula to mark the last occurrence and filter manually.

Can I remove duplicates in Google Sheets on my phone?

Yes, the Google Sheets mobile app has the same Remove duplicates feature. Tap on the column letter to select it, then tap the three-dot menu (or the “Format” icon) and look for “Remove duplicates”. The exact path may vary slightly by device, but it is available. The UNIQUE function also works on mobile, but typing formulas on a small screen can be tricky.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.