Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to count duplicates between two columns in Excel?

doc count duplicates two columns 1

In Excel worksheet, for example, I have two columns which contains some names, and now I want to count number of the names that both appear in column A and column C as following screenshot shown, here, I will introduce some quick methods for you to solve this task in Excel.

Count duplicates between two columns with formula

Count duplicates between two columns with Kutools for Excel


Compare two Ranges to find the same or different values:

With Kutools for Excel’s Select Same & Different Cells utility, you can quickly find the same or different values from two ranges.

doc count duplicates two columns 7

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Count duplicates between two columns with formula


The following formula may help you to get the number of names that both in Column A and Column C, please do as this:

Enter this formula into a blank cell, E2 for instance:

=SUMPRODUCT(--(ISNUMBER(MATCH(A2:A13,C2:C13,0)))),and then press Enter key to get the result, see screenshot:

doc count duplicates two columns 2

Note: In above formula, A2:A13 and C2:C13 are the two columns that you want to count the duplicate records. You can change the cell references to your need.


Count duplicates between two columns with Kutools for Excel

Sometimes, you not only want to count the matching cells in two columns but also want to identify the specific duplicates, in this case, the above formula may not help you to locate the duplicate names both in Column A and in Column C. Here, I can recommend you a powerful tool – Kutools for Excel, with its Select Same & Different Cells utility, you can quickly select the duplicate names.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days. 

After installing Kutools for Excel, please do with following steps:

1. Click Kutools > Select > Select Same & Different Cells, see screenshot:

doc count duplicates two columns 3

2. In the Select Same & Different Cells dialog box, do the following operations:

(1.) Click doc count duplicates two columns 5button to select the first and second data ranges that you want to compare under the Find values in and According to section separately;

(2.) Select Each row in the Based on section;

(3.) From the Find section, please choose Same Values;

(4.) And then you can specify a background or font color for your duplicate values as you need from the Processing of results section.

doc count duplicates two columns 4

3. And then click Ok button, a prompt box will pop out to remind you how many cells which contain the duplicate names, and all the duplicate names in the both columns have been selected in Column A. See screenshot:

doc count duplicates two columns 6

Note: If you want to select the duplicate names in Column C, you just need to swap Range A and Range B in the Compare Ranges dialog.

 Download and free trial Kutools for Excel Now !


Demo: Count duplicates between two columns with Kutools for Excel

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Excel Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 70%, and Help You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for you.

  • Designed for 1500+ work scenarios, helps you solve 80% Excel problems.
  • Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  • Being used by 110,000 elites and 300+ well-known companies.

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.