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 compare two columns and list differences in Excel?

doc compare and list unique 1

Let’s say, you have two lists of student’s names in Column A and Column B of your worksheet, and some of them are both in the two columns, but now, you just want to compare these two columns and list the different names from them as left screenshot shown:

Compare two columns and list differences with formulas

Compare two columns and list differences with Kutools for Excel


Compare two columns and list the different values:

With Kutools for Excel's Select Same & Different Cells feature, you can quickly compare two columns to find and select all the different values from one list, and then copy and paste the unique values to any other cells. Click to download and free trial Kutools for Excel now!

doc compare and list unique 15

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!



To list only the unique values from the two lists separately, you can apply the following formulas:

1. Please enter this formula into cell D2: =IF((ISERROR(MATCH(A2,$B$2:$B$14,0))),A2,""), (A2 is the first cell within the Column A that you want to compare with Column B, and range $B$2:$B$14 indicates another column that you want to be compared with) and then press Enter key, see screenshot:

doc compare and list unique 2

2. Then drag the fill handle down to the cells that you want to apply this formula, and all the unique names which are only in Column A have been listed at once, see screenshot:

doc compare and list unique 3

3. And then go on enter this formula: =IF((ISERROR(MATCH(B2,$A$2:$A$15,0))),B2,"") into cell E2, and press Enter key, see screenshot:

doc compare and list unique 4

4. Then select the cell E2, and drag the fill handle over to the cells that you want to contain this formula, and then all names only in Column B have been extracted as follows:

doc compare and list unique 5

Now all the unique names in both columns are list.


If you are not interested in the formulas, here, I can recommend you a useful tool-Kutools for Excel, with its Select Same & Different Cells utility, you can quickly find, shade or select the duplicates or unique values from two ranges.

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 as follows:

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

doc compare and list unique 6

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

A: Click doc compare and list unique 8 button under the Find values in: (Range A) section to select the names in Column A that you want to extract the different names, and click doc compare and list unique 8 button under the According to: (Range B) section to select the names in Column B that you want to be compared;

B: Select Each row under the Based on section;

C: Then choose Different Values from the Find section;

D: If you want to shade the different names, you can check the Fill backcolor or Fill forecolor under the Processing of results.

doc compare and list unique 7 7

3. Then click OK button, all the names only in Column A have been selected, then you can copy and paste them into any other cells you need, see screenshots:

doc compare and list unique 9  2 doc compare and list unique 10

4. To list the names only in Column B, you just need to exchange the Find values in cells and According to cells in the dialog box, see screenshot:

doc compare and list unique 12 12

5. And all the different names only in Column B have been selected, then copy and paste them into any other cells you need, see screenshots:

doc compare and list unique 13  2 doc compare and list unique 14

Click to know more details about this Compare Ranges feature.

Download and free trial Kutools for Excel Now !


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 1500+ work scenarios, helps you solve 80% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  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, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

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.
  • Help you work faster and easily stand out from the crowd! 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.
  • To post as a guest, your comment is unpublished.
    Guest · 7 months ago
    Works great. Thanks!
  • To post as a guest, your comment is unpublished.
    guest · 11 months ago
    Thank you. It was exactly what I was looking for
  • To post as a guest, your comment is unpublished.
    JITENDRA · 1 years ago
    SIR I WANT TO REDUCE TWO COLUMN NAMESFROM ONE COLUMN