How to find unique/duplicate values between two columns in excel?

For example, I have two columns of different length filled with student names, and now I want to compare these two columns to select all values in column A but not in column B, and select all values in column B but not in column A. That means selecting unique values between two columns. If I compare them cell by cell, it will be very time-consuming. Are there any good ideas to find out all unique values between two columns in Excel quickly?

Find unique/duplicate values between two columns with formula

Find and count unique /duplicatevalues between two columns with formula of Kutools for Excel

Find unique/duplicate values between two columns with Kutools for Excel   good 3

Quickly select and count all duplicate/unique values from a column in Excel

General, we can remove duplicates from a list easily with Data > Remove Duplicates in Excel. But how to select duplicate/unique values, or count them from a column? And what if selecting or counting duplicate/unique except the first duplicate one? Try Kutools for Excel’s Select Duplicate & Unique Cells utility!

ad select duplicate unique values 2

Kutools for Excel includes more than 120 handy Excel tools. Free to try with no limitation in 30 days. Read More      Free Download Now

Recommended Productivity Software

Office Tab: Use tabbed interface in Office as the use of web browser Chrome, Firefox and Internet Explorer.
Kutools for Excel: Adds 120 powerful new features to Excel. Increase your productivity in 5 minutes. Save two hours every day!
Classic Menu for Office: Brings back your familiar menus to Office 2007, 2010 and 2013 (includes Office 365).

arrow blue right bubble Find unique/duplicate values between two columns with formula

Hint


The following formula can also help you to find the unique values, please do as this:

In a blank cell B2, enter this formula =IF(ISNA(VLOOKUP(A2,$C$2:$C$13,1,FALSE)),"Yes",""), and then drag this cell's AutoFill Handle to the cell B15.

If the unique values stay only in Column A but not in Column C, it will be displayed Yes in column B; while if return nothing in Column B, it means corresponding value stays in both Column A and Column C. See screenshot:

Notes:

(1) In the above formula, A2 is the column which you want to be compared. And the $C$2:$C$13 is the range that you want compared with.

(2) If you want to list the unique values only in Column C but not in Column A, you can apply this formula: =IF(ISNA(VLOOKUP(C2,$A$2:$A$15,1,FALSE)),"Yes","").

note ribbon Formula is too complicated to remember? Save the formula as an Auto Text entry for reusing with only one click in future!
Read more…     Free trial

arrow blue right bubble Find and count unique/duplicate values between two columns with formula of Kutools for Excel

Actually, the Kutools for Excel also provides a similar Count times a word appears formula to check and count the unique values between two columns in Excel. Please do as follows:

1. Select a blank cell beside the the first column, in our case we select the Cell B2, and click Kutools > Formulas > Count times a word appears. See screenshot:

Kutools for Excel - Combines More Than 120 Advanced Functions and Tools for Microsoft Excel

2. In the opening Formula Helper dialog box, please specify the absolute address of the second column ( $C$2:$C$13 in our case) into the Text box, select the first item of the first column (A2 in our case) into the Word box, and click the OK button.

3. And then drag this cell's AutoFill Handle to the range as you need.

And then each item's occurrence in the Column C has been counted out. 0 means corresponding item is unique between two columns. While other numbers, such as 1 means corresponding value exists in the Column C and appears once in the Columns C. See left screenshot:

 

Free Download Kutools for Excel Now


arrow blue right bubble Find unique/duplicate values between two columns with Kutools for Excel

Actually, Kutools for Excel develops a Compare Ranges utility to help Excel users to compare two lists and find/count/highlight the same values or unique values between them easily. Please do as follows:

1. Click Kutools > Compare Ranges, see screenshot:

Kutools for Excel - Combines More Than 120 Advanced Functions and Tools for Microsoft Excel

2. In the Compare Ranges dialog box, Please do as follows:

(1) Specify the first column whose values you will check if unique into the Find Values in box;

(2) Specify the second column you will check values based on into the According to box;

Note: If two columns have the same header, please check the My data has headers option.

(3) Check the Different Values option;

Note: For finding out duplicate values between two column, please check the Same Values option.

(4) It's optional to check the Fill backcolor option and specify a fill color from below drop down list;

(5) Click the Ok button.

Free Download Kutools for Excel Now

3. And then all unique values (or duplicate values) in the first column have been selected and filled with specified color, and a dialog box shows how many cells have been selected. See screenshot:

If you want to select the values in column C but not in Column A, you just need to swap the scope of Range A and Range B.



Is your problem solved?

Recommended Productivity Tools

The following tools will greatly save your time and effort, which one do you prefer?
Office Tab: Using handy tabs in your Office, as the way of Chrome, Firefox and New Internet Explorer.
Kutools for Excel: 120 powerful new functions for Excel, Increase your productivity in 5 minutes. Save two hours every day!
Classic Menu for Office: Bring back familiar menus to Office 2007, 2010, 2013 and 365, as if it were Office 2000 and 2003.

Kutools for Excel

gold star1 Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1 More than 120 powerful advanced functions which designed for Excel:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

btn read more     btn download     btn purchase

Add comment


Security code
Refresh