Return matching values
=FILTER(A2:A,COUNTIF(B2:B,A2:A)>0)Creates a compact list of overlaps.
Mark values in one list that also appear in another list.
Mark values in one list that also appear in another list. Use =IF(COUNTIF($B$2:$B,A2)>0,"Duplicate",""), then replace the sample ranges with the columns in your sheet.
COUNTIF checks whether the value from column A appears anywhere in column B.
| A | B | |
|---|---|---|
| 1 | List A | List B |
| 2 | ||
| 3 | ||
| 4 | ||
| 5 |
=FILTER(A2:A,COUNTIF(B2:B,A2:A)>0)Creates a compact list of overlaps.
=UNIQUE(FILTER(A2:A,COUNTIF(B2:B,A2:A)>0))Removes repeats from the result.
=IF(SUM(N(EXACT(A2,$B$2:$B)))>0,"Duplicate","")Treats Acme and ACME as different.
Add A2<>"" to the test.
Clean both lists with TRIM.
Add A2<>"" to the test.
Clean both lists with TRIM.
Send this recipe to the SheetSteps assistant and describe how your columns are arranged.