Check Whether a Value Appears in a List
Finance keeps an approved-vendor list, and your payment sheet names a vendor on every row. You need each row checked against the list automatically — no eyeballing two columns side by side.
Excel & Google Sheets
This formula works in both Excel and Google Sheets.
How it works
COUNTIF counts how many cells in the list equal A2 — at least 1 means the vendor is on the list, 0 means it isn't, and >0 turns that count into TRUE or FALSE for IF. The $ anchors on $D$2:$D$5 are essential: they lock the list range so it doesn't slide down a row each time you copy the formula. Matching is case-insensitive ("borealis" matches "Borealis") but otherwise exact — "Acme" won't match "Acme Co". Unlike VLOOKUP, there's no #N/A to catch when the value is absent; a zero count is a perfectly clean answer.
When to use it
Use it to validate vendors against an approved list, SKUs against the current catalog, customer IDs against an active-accounts list, or expense categories against the chart of accounts.
Common mistakes
Did this formula help?
Engine-verified against the sample data aboveDownload the proof sheet (.xlsx)Last reviewed 2026-07-09