How to find duplicate values in Multiple Excel sheets

Maybe compare two ranges in the same worksheet and find out the duplicate or unique values is easy for most of you, but if the two ranges are in the two different worksheets, how can you quickly find out the duplicate and unique values in these two ranges? This tutorial will introduce some quick cuts for you.

Compare two same header columns in two spread sheets with formula in Excel

Compare two ranges in two spread sheets with VBA

Compare two ranges in two spread sheets with Kutools for Excel

Office Tab Enable Tabbed Editing and Browsing in Office, and Make Your Work Much Easier...

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
  • More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
  • Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
  • Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
  • Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
  • Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
  • More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.


How to find duplicate values in Multiple Excel sheets
Compare two same header columns in two spread sheets with formula in Excel

How to find duplicate values in Multiple Excel sheets


With the formula in Excel, you can compare two same header columns as shown as below on different sheets and find the duplicate and unique values:

1. Typing this formula =COUNTIF(Sheet1!$A:$A, A1) in a blank cell which is adjacent to the range in Sheet 3. See screenshot:

How to find duplicate values in Multiple Excel sheets

2. Press Enter button on the keyboard, and then drag the fill handle to fill the range you want to compare with the range in Sheet 1. (Number Zero means duplicate values in two ranges, and Number 1 means unique values in Sheet3, but not in Sheet1)

How to find duplicate values in Multiple Excel sheets

Tips:

1.This formula only can compare two columns with the same header in two spreadsheets.

2. If you want to find the unique values in Sheet1, but not in Sheet3, you need to enter the above formula =COUNTIF(Sheet3!$A:$A, A1) into Sheet1.


How to find duplicate values in Multiple Excel sheets
Compare two ranges in two spread sheets with VBA

1. Hold ALT button and press F11 on the keyboard to open a Microsoft Visual Basic for Application window.

2. Click Insert > Module, and copy the VBA into the module.

VBA: Compare two ranges in two spreadsheets

Sub CompareRanges()
'Update 20130815
Dim WorkRng1 As Range, WorkRng2 As Range, Rng1 As Range, Rng2 As Range
xTitleId = "KutoolsforExcel"
Set WorkRng1 = Application.InputBox("Range A:", xTitleId, "", Type:=8)
Set WorkRng2 = Application.InputBox("Range B:", xTitleId, Type:=8)
For Each Rng1 In WorkRng1
    rng1Value = Rng1.Value
    For Each Rng2 In WorkRng2
        If rng1Value = Rng2.Value Then
            Rng1.Interior.Color = VBA.RGB(255, 0, 0)
            Exit For
        End If
    Next
Next
End Sub

3. Click Run button or press F5 to run the VBA.

4. There is a dialog displayed on the screen, and you should select one range you want to compare with. See screenshot:

How to find duplicate values in Multiple Excel sheets

5. Click Ok and another dialog is displayed for you to select the second range. See screenshot:

How to find duplicate values in Multiple Excel sheets

6. Click Ok, and the duplicate values both in Range A and in Range B are highlighted with the red background in Range A. See screenshot:

How to find duplicate values in Multiple Excel sheets

Tips: With this VBA, you can compare two ranges both in the same and different worksheets.


How to find duplicate values in Multiple Excel sheets
Compare two ranges in two spread sheets with Kutools for Excel

If formula is not convenient for you, and VBA is difficult for you, you can have a try on Kutools for Excel's Compare Ranges function.

Kutools for Excel includes more than 300 handy Excel tools. Free to try with no limitation in 30 days. Get it Now

Please apply Compare Ranges function by clicking Kutools > Compare Ranges. See screenshot:

How to find duplicate values in Multiple Excel sheets

Compare with two columns in different sheets:

1. Click Kutools > Compare Ranges, a dialog is displayed in the screen. See screenshot:

How to find duplicate values in Multiple Excel sheets

2. Specify the ranges and rules, do as follows:

Leave Compare in same range uncheck, and select two ranges by clicking Range A and Range B, see screenshot:

How to find duplicate values in Multiple Excel sheets

How to find duplicate values in Multiple Excel sheets

Specify the same values or different values you want to find in the drop-down box under Rules;

3. Click Ok. A pop-up dialog tells you the same values are selected.

How to find duplicate values in Multiple Excel sheets

4. Click Ok button in the pop-up dialog. The same values between two ranges are selected in Range A.

Compare two ranges in spread worksheets

If you have two ranges in two spreadsheets as shown as below, and you want to compare them and find out the different values, you can do as follows:

1. Click Kutools > Compare Ranges, a dialog is displayed in the screen.

2. Specify the ranges and rules, do as follows:

Leave Compare in same range uncheck, and select two ranges by clicking Range A and Range B;

Specify the different values you want to find in the drop-down box under Rules;

Check My data has headers in Options section;

3. Click Ok. A pop-up dialog tells you the same values are selected.

4. Click Ok button in the pop-up dialog. The different values in Range A are selected. See screenshot:

How to find duplicate values in Multiple Excel sheets

If you want to find out the different values in Range B of Sheet2, you need to swap the two ranges.

Compare Ranges function also can compare ranges in the same sheet. Click here to know more about Compare Ranges.


Relative articles:

  • Find unique values between two columns
  • Find duplicate values in two columns
  • Remove duplicates and replace with blank cells
  • Filter unique records from selected column

The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.

How to find duplicate values in Multiple Excel sheets


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

How to find duplicate values in Multiple Excel sheets

How can I tell if two Excel sheets have the same data?

Open the workbooks you want to compare. Go to the View tab, Window group, and click the View Side by Side button. That's it!

How do you find duplicates in different Excel spreadsheets using Vlookup?

Search & Find Duplicate Data Just create the formula =VLOOKUP(List-1, List-2,True,False) and add it to a third column. The List-1 data will be searched in List-2. If there are any duplicates, then these will be listed in the third column where the formula was placed.

How do I compare duplicates in two Excel spreadsheets?

Select both columns of data that you want to compare. On the Home tab, in the Styles grouping, under the Conditional Formatting drop down choose Highlight Cells Rules, then Duplicate Values. On the Duplicate Values dialog box select the colors you want and click OK.

How do I get unique values from different sheets in Excel?

If you want to find the unique values in Sheet1, but not in Sheet3, you need to enter the above formula =COUNTIF(Sheet3!$ A:$A, A1) into Sheet1.