How To Sort By Date In Google Sheets
Sort Google Sheets records by date while keeping rows together. Convert text dates, handle headers and use SORT or filter views for a separate result.
Read the guide ›
To remove duplicates in Google Sheets on a computer, select the complete record range and choose Data, Data cleanup, Remove duplicates. Choose the columns that define a duplicate, confirm whether the range has headers and run the cleanup.
Make a copy first when the data matters. A repeated product ID can be an error in a product catalog but a valid entry in a sales ledger. Decide what one record represents before removing it.

The illustration compares five invented ID records with three distinct retained IDs. IDs 1001 and 1002 each occur twice, while 1003 occurs once. Checking only the ID treats later records with the same ID as duplicates, even if another field differs.
For an exact duplicate row, check every field that defines that record. For one contact per verified email address, check the email column while reviewing what will happen to other details. A matching name alone is usually not enough to establish that two people are the same.
Google's cleanup instructions note that identical values can count as duplicates despite differences in letter case, formatting or formulas. Keep the whole record range together so removing an ID does not leave its other fields disconnected.
The tool retains the first occurrence in the current order. If a newer record should win, sort the whole dataset by its actual update date first, review ties and then deduplicate by the correct key. See sorting by date for keeping dates and their records aligned.
=UNIQUE(A2:A6) returns one copy of each ID in a separate result area. With the five IDs above, the result is 1001, 1002 and 1003 in first-appearance order. Leave enough empty cells for the results to expand.
For distinct combinations across three columns, use =UNIQUE(A2:C6). Two rows with the same ID but different other fields remain separate because the complete row differs. UNIQUE does not choose the newest row for a key or merge contact details.
The syntax is UNIQUE(range,by_column,exactly_once). The third argument has a specific meaning: =UNIQUE(A2:A6,FALSE,TRUE) returns only values that occur exactly once. In this example that is 1003. It does not return the repeated IDs.
The UNIQUE reference documents those arguments. Keep the original source until you have checked the result. When a static copy is needed, copy the output and paste values only into a separate destination.
For a list beginning in A2, enter =COUNTIF($A$2:$A$6,A2) in an empty helper column and copy it down. A result greater than 1 means the value repeats somewhere in that range. Both copies of 1001 receive 2; this count does not decide which row to delete.
To identify only later occurrences, use =COUNTIF($A$2:A2,A2)>1. The first occurrence is FALSE and a later repeat is TRUE. Use COUNTIF to understand the count, or conditional formatting to highlight candidates while retaining all records.
For an entire-row check across A:C, a COUNTIFS formula must compare all three fields and keep the intended columns anchored if it is applied across several columns. Do not treat a single-column count as proof that every field matches.
Leading spaces and inconsistent data types can make apparently similar entries different. Normalize according to the data's meaning. Do not strip meaningful characters from IDs or merge records solely because the display looks alike.
For large imports, cleaning separate chunks can leave duplicates that occur in different chunks. Combine the results and run a final duplicate check across the complete dataset. Keep a stable identifier and verify totals before relying on the output in a VLOOKUP.
Undo can reverse a recent cleanup. If undo is unavailable, an editor may be able to recover data from version history. Copying an earlier version can be safer than restoring it over collaborators' later work. Keep your own pre-cleanup copy rather than assuming recovery will always be available.
Duplicates cause real problems in marketing lists. The same contact emailed twice by an outreach campaign, or the same customer counted twice in a report, makes a business look careless and its numbers look better than they are. Our outreach and digital PR team removes duplicates from every prospect list before a campaign starts.
Decide which copy to keep before you remove anything. Sort the list so the most recent or most complete record of each contact comes first, then remove duplicates, since the cleanup keeps the first occurrence it finds. Work on a copy of the sheet the first time, so you can compare the result with the original.
Yes. It removes duplicate records from the selected range. Work on a copy or use UNIQUE in a separate result area when the original must remain intact.
It returns only entries that occur exactly once. For 1001, 1002, 1001, 1003 and 1002, UNIQUE with exactly_once set to TRUE returns only 1003.
Yes. Select the complete record range, then choose that column as the duplicate key. Review the other fields because matching keys can still have different associated information.
Undo may reverse a recent action. If that is unavailable, editors can inspect version history where accessible. Keep a separate pre-cleanup copy for important data.
Check one URL in Swiss Knife SEO without an account. A free account supports crawls of up to 100 URLs.
Sort Google Sheets records by date while keeping rows together. Convert text dates, handle headers and use SORT or filter views for a separate result.
Read the guide ›Google Sheets offers two primary approaches to filtering your data. The first is the toolbar filter, which lets you click dropdown arrows on your column headers...
Read the guide ›IMPORTRANGE is the function that lets you pull data from one Google Sheet into another without copying and pasting. When you work across multiple sheets, whether...
Read the guide ›