Test whether a value appears anywhere in another column or list.
Copy this formula
=IF(COUNTIF(B:B, A2)>0, "Yes", "No")COUNTIF counts how many times the value appears; greater than zero means it exists. IF turns that into a readable Yes/No. It's the simplest way to compare two lists for membership.
=IF(COUNTIF(Approved, A2)>0, "✓", "")→✓Marks rows whose ID is in the approved list.
=COUNTIF(B:B, A2)>0→TRUEReturns TRUE or FALSE directly, without IF.
=IF(ISNA(XLOOKUP(A2, B:B, B:B)), "New", "Existing")→ExistingXLOOKUP returns #N/A when the value is missing, which ISNA detects.
Using MATCH
=IF(ISNUMBER(MATCH(A2, B:B, 0)), "Yes", "No")MATCH + ISNUMBER also tests existence.
Flag with =IF(COUNTIF(ListB, A2)=0, "Missing", ""), then filter for "Missing".
No. COUNTIF and MATCH ignore case. For a case-sensitive test use =SUMPRODUCT(--EXACT(A2, B2:B100))>0.
Usually extra spaces, or a number stored as text on one side. Clean the data with TRIM, or convert the numbers with VALUE.
Add the sheet name to the range: =IF(COUNTIF(Sheet2!A:A, A2)>0, "Yes", "No").
Need a formula for your own data?
Describe what you want in plain language and let ExcelGPT write, explain, and verify the formula — free to start, no plugin.