Skip to main content

How to compare two columns and count differences in Excel?

If there are two columns, which are include duplicate values, how can you compare the columns and count the different values only in Excel? Here article, I will introduce the methods to count the differences by cells or rows between two columns/ranges.

Compare and count differences between two columns by cells
doc compare count difference 1

Compare and count differences between two ranges by rows good idea3
doc compare count difference 2


Compare and count differences between two columns by cells

Method 1 Conditional Formatting and Filter functions

To compare two columns and count differences by cells, you can use the Conditional Formatting function to highlight the duplicates first, then use the Filter function to count the total differences.

1. Select the column you want to count the differences, click Home > Conditional Formatting > New Rule.
doc compare count difference 3

2. In the New Formatting Rule dialog, select Use a formula to determine which cells to format in the Select a Rule Type section, then type this formula =countif($C:$C, $A1) into the Format values where this formula is true textbox.
doc compare count difference 4

3. Click Format, under Fill tab, select a color for the duplicates.
doc compare count difference 5

4. Click OK > OK, now the duplicates have been highlighted with a specific background color.
doc compare count difference 6

5. Select the column which you have highlight some cells, click Data > Filter, and then click the Filter icon to select Filter by Color > No Fill.
doc compare count difference 7
doc compare count difference 8

Now the differences in this column have been filtered. Select the filtered data and go to the Status bar, you can see the count.
doc compare count difference 9

Tip: In the formula =countif($C:$C, $A1), A1 is the first cell of the column you want to count differences, column C is the another column you want to compare with.

Method 2 Select Same & Different Cells

If you have Kutools for Excel installed, you can use it’s Select Same & Different Cells utility to quickly count the differences by cells or rows between two columns with 3 steps.

Kutools for Excel, with more than 300 handy functions, makes your jobs more easier. 

After free installing Kutools for Excel, please do as below:

1. Click Kutools > Select > Select Same & Different Cells.
doc compare count difference 10

2. In the Select Same & Different Cells dialog, select the two columns without headers into Find values in and According to textboxes, check Single cell and Different Values options.
doc compare count difference 11

3. Click Ok, a dialog pops out to tell you the number of difference in the column.
doc compare count difference 12


Compare and count differences between two ranges by rows

After free installing Kutools for Excel, please do as below:

1. Click Kutools > Select > Select Same & Different Cells.
doc compare count difference 13

2. In the Select Same & Different Cells dialog, select the two columns without headers intoFind values in and According to textboxes, check Each row and Different Values options.
doc compare count difference 14

3. Click Ok, the different rows in the column (which in Find values in textbox) have been selected, and the number of count is displayed in the popping dialog.
doc compare count difference 15


Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


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!
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations