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!


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.
kte tab 201905

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!
officetab bottom
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.