Skip to main content

Kutools for Office — One Suite. Five Tools. Get More Done.

How to compare two columns and list differences in Excel?

Author Xiaoyang Last modified

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:

a screenshot showing the original column data and the differences between them

Compare two columns and list differences with formulas

Compare two columns and list differences with Kutools for Excel


Compare two columns and list differences with formulas

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:

a screenshot of using formula to get the first difference

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:

a screenshot listing values only in column A

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:

a screenshot of using formula to get the first difference only in column B

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:

a screenshot listing values only in column B

Now all the unique names in both columns are list.


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!

a screenshot of using Kutools for Excel to easily compare two columns and list the differences

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


Compare two columns and list differences with Kutools for Excel

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.

After installing Kutools for Excel, please do as follows:

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

a screenshot of enabling the select Same & Different Cells feature

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

A: Click a screenshot of the range selection button 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 a screenshot of the range selection button 2 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.

a screenshot showing how to configure the Select Same & Different Cells dialog box

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:

a screenshot showing all matched cells are selected in the first column range a screenshot of an arrow a screenshot showing selected cells being pasted to a specified location

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:

a screenshot of exchanging the columns to list the names only in column B

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:

a screenshot showing all matched cells are selected in the second column range an arrow a screenshot showing selected cells in column B being pasted to a specified location

Click to know more details about this Compare Ranges feature.

Download and free trial Kutools for Excel Now !


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
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

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...


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!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

Excel Word Outlook Tabs PowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in