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 check or find if value exists in another column?

doc check if in another list 1

Supposing, I have two columns of data which contains some duplicate values in these both columns as left screenshot shown. And now, I want to find if the values in Column A also exists in Column C. To compare them one by one is not a good method, here, I can talk about some handy tricks for solving this problem in Excel.

Method 1: Check if value exists in another column with formula

Method 2: Check if value exists in another column and highlight them with Conditional Formatting

Method 3: Check if value exists in another column and shade them at once with Kutools for Excel


Find or Highlight if value exists in another column:

Kutools for Excel's Select Same & Different Cells feature can help you to select and highlight the same and different cell values between two columns as you need.

doc check if in another list 11

Download and free trial 60-day

 

Check if value exists in another column with formula


To check if the values are in another column in Excel, you can apply the following formula to deal with this job.

1. First, you can copy the two columns of data and paste them into column A and Column C separately in a new worksheet, leave Column B blank to put the following formula.

2. Enter this formula: =IF(ISERROR(VLOOKUP(A4,$C$4:$C$14, 1, FALSE)),"Not Exist","Exist" ) into cell B2, and press Enter key, see screenshot:

doc check if in another list 2

Note: in the above formula, A4 is the cell of the first column that you want to check if it is in another column, and $C$4:$C$14 is the column that you want to be compared with.

3. Then select cell B4, and drag the fill handle over to the cells that you need to apply this formula, you will get the following result, Exist stands for the value in List A exists in List B as well, and Not Exist indicates the value is not in List B.

doc check if in another list 3


Check if value exists in another column and highlight them with Conditional Formatting

In Excel, you can also highlight the duplicate values in one column when they found in another column by using the Conditional Formatting. Please do as this:

1. Select the cells in List A that you want to highlight the cells where the values exit in List B as well.

2. Then click Home > Conditional Formatting > New Rule, in the New Formatting Rule dialog box, please click Use a formula to determine which cells to format from the Select a Rule Type section, and then enter this formula =MATCH(A4,$C$4:$C$14,0) into the Format values where this formula is true text box, see screenshot:

doc check if in another list 4

3. Then click Format button to go to the Format Cells dialog box, and choose one color you like under the Fill tab, see screenshot:

doc check if in another list 5

4. Then click OK > OK to close the dialogs, and now, you can see the values both in List A and in List B are highlighted from List A, see screenshot:

doc check if in another list 6


Check if value exists in another column and shade them at once with Kutools for Excel

With Kutools for Excel’s Select Same & Different Cells feature, we can quickly select or shade the duplicates or differences in the two columns. This will be help for you to find the duplicate or unique values at a glance.

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 check if in another list 7

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

A: Click  button from the Find values in: (Range A) section to select the column of data that you want to compare with another column. And click  button under According to: (Range B) section to select the cells that you want to be compared with.

B: Select Each row under the Based on section.

C: Specify Same Values from the Find section.

D: You can fill background color or font color for the same values you need under the Processing of results section, please choose the color you like.

doc check if in another list 8

3. After finishing the settings, then click Ok button, all the values in both Column A and Column C are shaded in the Column A as following screenshot shown:

doc check if in another list 9

Note: If you want to fill the same values in Column C, you just need to exchange the Find values in column data and According to column in the dialog box, and you will get the following results:

doc check if in another list 10

Download and free trial Kutools for Excel Now !


Check if value exists in another column and shade them at once 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!


Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, 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 82% 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.