DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk4 min

Excel List Checks: Flag Items, Find Gaps, or Return Matches

Use COUNTIF for found/missing flags, FILTER plus COUNTIF for a spilled exceptions list, and XLOOKUP when you need a matched value or not-found label.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To compare two lists in Excel, use COUNTIF to mark whether each item appears in the other list, FILTER with COUNTIF to spill a list of missing items, or XLOOKUP when you need a corresponding value or a clear “Missing” result. The right choice depends on whether you need a flag, an exceptions list, or a returned field—and whether your Excel version supports the function.

Choose the result you need

Your goal Start with What it returns Key limitation
Mark each item as present or missing COUNTIF An occurrence count that you can turn into a flag Counts duplicates; text criteria are case-insensitive. Microsoft’s COUNTIF reference
List all items in one range that are absent from another FILTER + COUNTIF A dynamically filtered list of exceptions FILTER is limited to supported modern Excel editions. Microsoft’s FILTER reference
Find a related value or display a not-found label XLOOKUP A value from a corresponding return range, or a specified fallback Not available in Excel 2016 or Excel 2019. Microsoft’s XLOOKUP reference
Compare two entire workbook files Spreadsheet Compare A report of differences between workbooks or versions Availability is limited to specified Office Professional Plus editions or Microsoft 365 Apps for enterprise. Microsoft’s Spreadsheet Compare guidance

These methods answer different questions: COUNTIF says how many times an item occurs; FILTER returns the items that meet a condition; XLOOKUP returns a corresponding value. Decide whether “same” means present at least once, present the same number of times, or paired to a specific row before choosing a formula.

As an Amazon Associate I earn from qualifying purchases.

Flag values in one list as found or missing

Suppose List A is in A2:A100 and List B is in B2:B100. In C2, enter this formula and fill it down alongside List A:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
=IF(COUNTIF($B$2:$B$100,A2)>0,"Found","Missing")

COUNTIF(range,criteria) counts cells in the range that meet the criterion. Here it checks how often the value in A2 occurs in List B. A zero count produces “Missing”; a positive count produces “Found.” The dollar signs keep the checked range fixed as you fill the formula down.

To check List B against List A, reverse the ranges: place the formula beside List B and use =IF(COUNTIF($A$2:$A$100,B2)>0,"Found","Missing"). Checking in both directions reveals items unique to either list.

Spill a list of missing items

If your Excel edition supports FILTER, this formula returns the entries from List A that have no occurrence in List B:

=FILTER(A2:A100,COUNTIF(B2:B100,A2:A100)=0,"No missing items")

COUNTIF supplies a count for each value in List A; the test =0 forms the include condition for FILTER. The final argument displays “No missing items” if no entries qualify. To list values in B absent from A, swap the source and checked ranges:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
=FILTER(B2:B100,COUNTIF(A2:A100,B2:B100)=0,"No missing items")

The combined formula applies the documented behavior of both functions; it is not a quoted Microsoft example. If the formula is rejected, check that your edition supports FILTER and whether your Excel locale uses different formula argument separators. Without FILTER, use the COUNTIF flag column, then filter that worksheet column to show only “Missing.”

Use XLOOKUP when you need a matched value

To check whether the value in A2 appears in List B and return either the match or a label, use:

=XLOOKUP(A2,$B$2:$B$100,$B$2:$B$100,"Missing",0)

The lookup range and return range are both List B here, so a found item is returned as-is. The optional “Missing” argument supplies the not-found result, and 0 specifies an exact match; exact match is also the default. For reconciliation, point the return range to the associated field instead—for example, a status or amount column aligned row-for-row with the lookup range. Microsoft describes the distinction this way: “XLOOKUP uses a lookup array and a return array, whereas VLOOKUP uses a single table array followed by a column index number.” Microsoft Support

Check Excel compatibility before choosing a formula

  • XLOOKUP is unavailable in Excel 2016 and Excel 2019, according to Microsoft’s function reference. A workbook containing it may still open in those versions if it was authored in a newer version, but that does not make the function available for use there. XLOOKUP availability
  • Microsoft’s FILTER reference lists Microsoft 365, Excel 2024, Excel 2021, and mobile editions. Availability can depend on platform, language, and license, so verify the installed edition if uncertain. FILTER availability
  • For other function-version markers, consult Microsoft’s Excel functions by category reference.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Account for duplicates, case, and special characters

Membership is not a duplicate-count comparison

The flag formula tests whether an item appears at least once. If List A contains “Orchid” three times and List B contains it once, all three A rows are marked “Found.” That does not establish that the lists have the same duplicate frequencies or that each row has a one-to-one counterpart. If counts or quantities matter, compare occurrence totals or reconcile records using an appropriate unique identifier.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

COUNTIF ignores text case

Ordinary COUNTIF text criteria are case-insensitive, so values differing only by uppercase and lowercase letters are treated as matching. If case is meaningful—for example, in a case-sensitive identifier—the basic formula is not sufficient.

Asterisks and question marks act as wildcards

In COUNTIF criteria, * can represent any sequence of characters and ? can represent one character. If those symbols occur literally in your data and must not act as wildcards, use a more specific approach than the basic membership formula. Microsoft also warns that criteria strings longer than 255 characters can return incorrect results. COUNTIF details and troubleshooting

Keep the check separate from duplicate cleanup

Comparison formulas help identify what is missing; they do not require deleting or changing source data. If you choose to remove duplicates afterward, first keep a copy of the source. Microsoft distinguishes filtering unique values, which only hides duplicates temporarily, from Remove Duplicates, which permanently deletes duplicate values from the selected cells or table. Microsoft’s duplicate guidance

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.