How to compare two Excel sheets for duplicates

CHOOSE FILE TYPE
XLS\CSV
TEXT
XML
Step-by-step guide how to compare two Excel worksheets for duplicate rows. Fast. Free. No formulas. No Upload.
ENG
日本語
한국인
中国語
DEU
ESP
РУС
УКР
Copy List ...
Save List ...
Save Report ...
Merge
List
Close
No Filter0
Added0
Deleted0
Equal0
Edited0
Common0
CONSOLIDATE
MATCHING COLS
Close
FILE 1
Paste From ClipboardPaste
Remove Duplicate RowsDedup
Remove Empty CellsDel Empty
Sort CellsSort
Trim CellsTrim
Copy Cells To ClipboardCopy
KEY
A
KEY
B
KEY
C
KEY
D
KEY
E
HDR
1
HDR
2
HDR
3
HDR
4
HDR
5
6
7
8
9
10
11
12
13
14
KEY
A
HDR
1
FILE 2
Paste From ClipboardPaste
Remove Duplicate RowsDedup
Remove Empty CellsDel Empty
Sort CellsSort
Trim CellsTrim
Copy Cells To ClipboardCopy
KEY
A
KEY
B
KEY
C
KEY
D
KEY
E
HDR
1
HDR
2
HDR
3
HDR
4
HDR
5
6
7
8
9
10
11
12
13
14
KEY
A
HDR
1
Select Delimiter for Text Value
Ok
Cancel
Compare
Compare
Rate quality of our service
Rating Star
Rating Star
Rating Star
Rating Star
Rating Star
Close

Often, you need more than just a visual comparison of two Excel spreadsheets - you need a list of matching rows that you can save to a separate file or send to a colleague.

In this step-by-step guide, we'll show you how to do that in just a few seconds.

In our example, we'll use two lists of laptop models and create a new file containing only the rows that appear in both lists.

Drag and Drop Two Files onto This Page

To get started, drag and drop two files from File Explorer onto this page. Place one file in the left panel and the other in the right panel.

You can also paste data directly into the tables using the clipboard. This option is especially useful if your spreadsheets are stored in Google Sheets or use a format other than XLSX or CSV.

In our example, it looks like this:

Drop two files to xlCompare

Specify the Header Row and Key Column

You can skip this step if your table does not contain a header row. However, it is important to get accurate results. The header row gives xlCompare the field names from your table, while the key column tells the application which field should be used to match rows between the two tables.

How to Select the Header Row

Click the HDR marker next to the row number. The selected row will be highlighted in blue.

In our example, the first row in each table is the header row.

What if there is no header row? Simply skip this step - it will not affect the comparison result.

Select heading rows in table

How to Specify the Key Column

Click the KEY marker in the column header. The selected column will be highlighted in blue.

In our example, we use the SKU column as the key field. This field uniquely identifies each row in the table.

In more advanced cases, the key can consist of multiple fields, such as first name and last name.

What if you are not sure which field to use as the key? Just skip this step. In that case, xlCompare will use a different algorithm to find differences between the tables.

Select key columns in table

Compare the Two Tables

Click the Compare button located below the two tables to run the comparison and instantly see the results on the screen.

All differences between the two tables will be highlighted with colors for easy review.

Compare button

Result is the following:

Comparison report on xlCompare website

Get a List of Matching Rows

Above the comparison report, you will see the Legend, which displays the number of matching and different rows.

Legend area above the report

Select Equal, and xlCompare will display only the rows that are completely identical in both tables.

That's exactly what we need.

Equal rows

Save the Resulting List

The online version of xlCompare does not save files directly to your disk. Instead, it allows you to copy the resulting table and paste it into a new Excel file or Google Sheets document.

This is a simple and familiar way to transfer data between spreadsheets - even for beginners.

Right-click anywhere inside one of the tables.

Select All command in the context menu

Click Select All in the context menu.

Right-click again and select Copy.

Copy command in the context menu

Done! The selected data is now stored in your clipboard.

You can now paste it directly into Microsoft Excel or Google Sheets.

You can also use keyboard shortcuts instead of the context menu:

  • Ctrl+A - Select All
  • Ctrl+C - Copy

Conclusion

As you can see, the entire task can be completed in just a few clicks.

Even if you are highly experienced with Excel formulas, functions, and advanced features, getting the result with 5–6 mouse clicks is faster and easier.

Want to Try the Desktop Application?

The online version of xlCompare is a fast and free way to compare Excel spreadsheets. So why does the website also offer a paid desktop application?

The desktop version includes a range of advanced features designed for professional and enterprise use:

  1. Compare all worksheets in a workbook at the same time.
  2. Faster performance when working with large files.
  3. Advanced comparison settings - ignore symbols or measurement units, define numeric precision, group and filter comparison results, and much more.
  4. Formula comparison and auditing at the expression level.
  5. Create and save detailed comparison reports.
  6. Integration with repositories such as Git, SVN, and Perforce. If you are a developer storing Excel files in version control, xlCompare is an excellent tool for analyzing changes and resolving conflicts.

The xlCompare desktop application is a professional solution for businesses and enterprise users who work with Excel spreadsheets as part of their daily operations.

Download xlCompare

See Also

Compare XLSX Files Online Step-by-Step

Step-by-step instruction on comparing Excel files for difference online using xlCompare.com. In a few seconds you will have your job done!

How to compare two Excel sheets for matching data

If your goal is to find matching rows in two Excel spreadsheets, xlCompare offers a fast and simple solution that takes only a few seconds ...

How to compare two excel sheets and find missing rows

Tasks like these should not be done manually - the risk of human error is too high. The online application xlCompare automates this process and solves the problem in seconds ...

How do I find the values that are in one column but not in the other

xlCompare can do this automatically in just a few clicks. It's one of the easiest ways to find differences between values in two Excel columns ...

I have a question about xlCompare