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.      Click to download Kutools for Excel!

doc check if in another list 11

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!


Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

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!
officetab bottom
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.