Compare columns or sheets for duplicates in Google Sheets (2024)

Compare Sheets for Duplicates scans two or more columns or sheets of your choice for duplicated or unique data. The results can be colored, deleted, copied, or moved to another location.
Compare columns or sheets for duplicates in Google Sheets (1)

Before you start

Duplicates = complete matches

Only complete matches are treated as duplicates. Partial matches are not considered duplicates. And keep an eye out for excess spaces: they may interfere with results as well. Our Remove tool will help you get rid of them.

Google Sheets cell limit

Please bear in mind that Google Sheets limits the total number of possible cells in your file up to 10 million cells.

Explore other deduplication tools

  • Compare Sheets for Differences — marks differences between multiple Google sheets cell by cell.
  • Compare Two Columns — scans two columns within one sheet for duplicate or unique values.
  • Remove Duplicate Rows — find identical or unique rows within a table.
  • Quick Dedupe — 1-step version of Remove Duplicate Rows.
  • Remove Duplicate Cells — will look for dupes or uniques in all single cells all over your entire spreadsheet.
  • Combine Duplicate Rows — merges or consolidates unique records that refer to multiple duplicate values on different rows.

How to use Compare Columns or Sheets

Start the tool

Find Compare Sheets in the Extensions menu and run Compare sheets for duplicates:
Compare columns or sheets for duplicates in Google Sheets (2)

Step 1: Select sheets to compare

Choose all the sheets and ranges you'd like to compare:
Compare columns or sheets for duplicates in Google Sheets (3)

  1. To select all sheets from the tree view for comparison at once, tick off the Sheets checkbox.
  2. To add more sheets to the tree view, click Add files from Drive.

    Tip. You can quickly locate the desired spreadsheet in Drive using the quick search field. Just enter the part of the file name into the Search field of the Import files from Drive window and hit Find. The tool will scan your entire Drive, shared files or Drives (if any), and even starred items and display the list of all files with partial or complete name matches.

    If you're not sure where these spreadsheets are located, simply hover your mouse cursor over the spreadsheet of interest and you'll see a tip with its full path:
    Compare columns or sheets for duplicates in Google Sheets (4)

    Tip. To add several spreadsheets from your Drive to the add-on in one go, click on them by holding Ctrl (for non-adjacent) or Shift (for adjacent) pressed on your keyboard. The files will be highlighted in light blue. Then press Add to see them in the tree view.

  3. If you change your mind about any spreadsheet, select it and click Exclude to remove it from the comparison.
  4. By default, the add-on compares All data (till the first empty row and column) from each selected sheet. To alter it, click this field and do one of the following:
    • Enter the range address in this field using your keyboard.
    • Click the Select range icon and pick the necessary cells right on the sheet.
    • Click the Select range icon and hit Auto select. The add-on will automatically pick the used range with all the data you have:
      Compare columns or sheets for duplicates in Google Sheets (5)

      Note. If you want to delete duplicates rather than just color them, it's best to select the whole table so that the add-on removes entire rows avoiding data corruption.

Click Next to proceed to the second step..

Step 2: Select the main sheet

Choose the sheet that will be treated as your main one:
Compare columns or sheets for duplicates in Google Sheets (6)
This sheet will serve as a reference for comparison with all other sheets. The results will show the relation between the main and other compared sheets.

Tip. The sheets are organized by the spreadsheets they belong to, which can be particularly beneficial if there are multiple sheets with identical names.

Choose Next to proceed to the next step, or Back to change the comparison sheets.

Step 3: Decide what to find

The add-on allows you to find unique or repeated values in all tables:
Compare columns or sheets for duplicates in Google Sheets (7)

  • Pick Duplicate values to look for the records that exist in the main and every other compared sheet.

    Note. Only complete matches are treated as duplicates. Partial matches are not considered duplicates.

    Compare columns or sheets for duplicates in Google Sheets (8)

    Note. The found records will be identified on the sheets selected on the last step.

  • Choose Unique values to find those entries that appear in every other sheet but the main one:
    Compare columns or sheets for duplicates in Google Sheets (9)

Click Next to select the columns to compare.

Step 4: Pick the columns to compare

On this step, you will see a list of columns in your main table. Select the checkboxes next to those key columns that you want to compare in your sheets and pick the related columns from other compared sheets.

Tip. If you select more than one column, a row will be considered duplicate if the values in all these columns are the same:
Compare columns or sheets for duplicates in Google Sheets (10)

Compare columns or sheets for duplicates in Google Sheets (11)

  1. If your tables have header rows, make sure to tick off the checkboxes Main table has headers and Other tables have headers respectively to see the column titles. If you don't have headers, unselect these boxes to display column names.
  2. You can use the 1st row content fields to see what kind of data you have in your main table columns.
  3. If you want to look for complete row duplicates, select all columns by using this checkbox in the header row.
  4. Automatically select all columns that have the same headers in all tables by using the Auto detect button.
  5. Check the Skip empty cells box to ignore duplicate blanks in the selected columns. Otherwise, blank matches will be considered duplicates.
  6. Use the Match case option to consider those records that differ only in the text case as uniques.
  7. Make sure to indicate the corresponding Other tables columns by clicking the down arrow for each of them and picking the necessary column from the drop-down list.

Once everything is set, press Next to proceed to the last step.

Step 5: What to do with the results

There are 7 (seven) ways to deal with the found values:
Compare columns or sheets for duplicates in Google Sheets (12)

Choose the action

  • Color the rows with the found values by picking the Fill with color option. Click on the down arrow next to this option to choose a hue you'd like to use.
  • Add a status column to the found records:
    Compare columns or sheets for duplicates in Google Sheets (13)

    Tip. You'll be able to sort out duplicates/uniques easily after that.

  • Decide to Copy to another location and have the results in a new sheet, new spreadsheet, or any custom location (existing sheet in the current file).

    When copying from multiple sheets to a new spreadsheet, there's an extra checkbox: Values from each table to separate sheets. Use it to put the dupes/uniques from each compared table into a separate file.

    Tip. The Custom location option lets you pick a destination cell in one of the existing sheets:
    Compare columns or sheets for duplicates in Google Sheets (14)
    Just click the Select range icon and pick the top-left cell for the result directly from the sheet:
    Compare columns or sheets for duplicates in Google Sheets (15)

  • The same goes for the Move to another location option. The values will be cut and pasted to a place of your choice.
  • Pick Clear values to remove the found records in the selected columns and leave all other data intact.
  • You can also remove all rows with the found dupes using the Delete rows within selection option.
  • Or have the entire rows removed from the sheet even outside your selected tables with the last setting — Delete entire rows from the sheet.

Add cross-sheet links is available for each action except deleting. It will insert hyperlink references next to the found dupes so you could quickly navigate across all found instances in the compared sheets and see the source sheets of each record.

Apply the action to

Since the add-on compares multiple sheets now and looks for the values across them all, you can choose where those dupes or uniques will be processed once they're found:

  • Main sheet. To color, remove, etc. found values only in the main sheet:
    Compare columns or sheets for duplicates in Google Sheets (16)
  • Other compared sheets. To process found dupes or uniques on all sheets but the main one:
    Compare columns or sheets for duplicates in Google Sheets (17)
  • All sheets. To apply the action to all duplicate or unique values across all sheets: main and other compared sheets:
    Compare columns or sheets for duplicates in Google Sheets (18)

Click Compare to find duplicate or unique values and process them with the chosen action on the chosen sheets.

See the result

Once the add-on completes the search, you will see the summary of the results with the number of found values and the action that was applied to them:
Compare columns or sheets for duplicates in Google Sheets (19)
To save these settings and use them in the future, click Save scenario.

Tip. If you'd like to run the add-on again, click on the Start over button.

How to work with scenarios

If you compare columns & sheets often, most likely you'll want to run the add-on without going over the same steps and choosing the same settings over and over again.

Scenarios will help you with that.

What is a scenario

A scenario is a saved set of those options that you select in the add-on on each step. You will have a chance to save the settings right after the add-on processes your data. Then, you just run this scenario and the tool compares your data. Pretty cool, huh? :)

Save the scenario

When the add-on finishes combining duplicate rows and shows you the result message, click Save scenario:
Compare columns or sheets for duplicates in Google Sheets (20)
You will see a short summary of all options you have used just now — this is your scenario preview:
Compare columns or sheets for duplicates in Google Sheets (21)

  1. Name your scenario so you could understand what it does and quickly find it among other scenarios.
  2. Choose your tables to compare:
    • Pick [Selected sheet] and the add-on will treat your currently active sheet when running the scenario as a main one.

      Note. This option is available for Main sheet only.

    • Select specific sheets from the lists to compare particular tables.
  3. Identify ranges to process in the main and other compared sheets:
    • Select [All data] to automatically detect the entire used ranges for work.
    • To handle the exact cells, simply enter the desired ranges of cells.
  4. Scroll down to look through the options you're about to save to make sure everything is correct:
    Compare columns or sheets for duplicates in Google Sheets (22)

    Note. These options cannot be changed. To modify them, you will need to restart the add-on and pick the correct settings on all steps over again.

Once you're all set, click Save and the scenario will be created.

Run your scenario

To start the scenario, go to your add-on (Compare Sheets, Remove Duplicates or Power Tools) in the Extensions menu, find Scenarios, select the required scenario and click Start.

Note. If you don't see Scenarios in the menu, just run the add-on itself once. This is necessary for new spreadsheets and those where the add-on hasn't been run yet. Your scenario (and all future ones) will then appear in the menu automatically.

Compare columns or sheets for duplicates in Google Sheets (23)
This will run Compare Sheets with all the necessary settings right away.

Once it's done, you will get the result message saying what scenario has just worked and what it's processed:
Compare columns or sheets for duplicates in Google Sheets (24)

Manage scenarios

To view the scenario or to change the sheets and the ranges for comparison, go to the same Scenarios menu, pick the scenario and select Edit this time:
Compare columns or sheets for duplicates in Google Sheets (25)
You will see the same scenario outline:
Compare columns or sheets for duplicates in Google Sheets (26)
You can give it a new name and select other sheets & ranges.

If you make any changes, press Save to keep them. Click Run to start the scenario right away, or hit Delete to remove it completely.

Compare columns or sheets for duplicates in Google Sheets (2024)

FAQs

What is the formula for comparing two columns in Google Sheets? ›

Apply it by inserting '=C2=D2' in a new column to compare Q1 and Q2 sales. The formula outputs TRUE for equal sales figures and FALSE for any differences, offering a straightforward way to spot sales trends.

How do I compare two columns and find duplicates? ›

Conditional Formatting

Navigate to the "Home" option and select duplicate values in the toolbar. Next, navigate to Conditional Formatting in Excel Option. A new window will appear on the screen with options to select "Duplicate" and "Unique" values. You can compare the two columns with matching values or unique values.

How do you compare two spreadsheets for duplicates? ›

Select the range you want to compare in the second sheet. Go to the Conditional Formatting Rules Manager. Select the rule, click on Duplicate Rule and then hit Edit Rule. Replace “Sheet2” with the name of the first sheet to compare.

How do I find matching values in two different sheets? ›

You can use a VLOOKUP formula to find information from one sheet and show it on another. To do this, you need to give each sheet a range name and then use that as the premise for your VLOOKUP formula.

How do I pull matching data in Google Sheets? ›

How to use the MATCH formula in Google Sheets. Type “=MATCH” or go to “Insert” → “Function” → “Lookup” → “MATCH”.

How do you check if there are duplicates in a column? ›

Select the cells you want to check for duplicates. Note: Excel can't highlight duplicates in the Values area of a PivotTable report. Select Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values.

How to identify duplicates in Google Sheets without deleting? ›

Highlight the data range you want to check for duplicate information. Then select Format > Conditional Formatting. From the Conditional format rules window that appears, click the dropdown menu under Format rules, and select Custom formula is. Enter a custom duplicate checking formula in the Value or formula bar.

How to find unique values between two columns in Google Sheets? ›

To use the UNIQUE function in Google Sheets, simply type =UNIQUE(range) where 'range' is the cell range you want to extract distinct values from.

Top Articles
Latest Posts
Article information

Author: Chrissy Homenick

Last Updated:

Views: 6103

Rating: 4.3 / 5 (54 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Chrissy Homenick

Birthday: 2001-10-22

Address: 611 Kuhn Oval, Feltonbury, NY 02783-3818

Phone: +96619177651654

Job: Mining Representative

Hobby: amateur radio, Sculling, Knife making, Gardening, Watching movies, Gunsmithing, Video gaming

Introduction: My name is Chrissy Homenick, I am a tender, funny, determined, tender, glorious, fancy, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.