How to check if one list against another in Excel?
There are two lists in a sheet, the job is to check if there are some data in one list against another one, which means to check if there are some duplicates in one list based on another. Here I introduce some tricks on quickly finding if one list against another one in Excel.
Recommended Productivity Tools for Excel
Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial
Kutools for Excel: Save 71% of your time and solve 82% Excel problems for you. 300+ advanced tools designed for 1500+ work scenario, make Excel much easy and increase productivity immediately.60-day Unlimited Free Trial
Here are some formulas can quickly check if one list against another one.
In the adjacent cell to the first list you want to check, type this formula =IF(ISNA(VLOOKUP(A2,$C$2:$C$6,1,0)),"No","Yes"), and drag fill handle down to the cells you want to check.
1. In the formula, A2 is the first cell of the list you want to check if against to another one, C2:C6 is the second list you want to check based on.
2. You also can apply this formula =IF(COUNTIF($C$2:$C$6,A2)>0,TRUE,FALSE) to handle this job.
If you want to check one list if against another one and highlight the duplicates, you can apply Kutools for Excel’s Select Samee & Different Cells utility.
|Kutools for Excel, with more than 120 handy functions, makes your jobs easier.|
After installing Kutools for Excel, please do as below:(Free Download Kutools for Excel Now!)
1. Click Kutools > Select > Select Same & Different Cells. See screenshot:
2. In the popping dialog, do as below:
A: Select the list you want to check to the Find values in textbox, and select the list you want to check based on into the According to textbox.
B: check Each row in the Based on section.
C: check Same values in Find section.
D: Check and select the background color or font color if you want to highlight the duplicates.
3. Click Ok, and a dialog pops out to remind you that the duplicate values have been selected. Click OK to close the dialog, and the duplicates in the first list have been selected and highlight with background color.