Yes, you can find values in one list that do not appear in another list using the built-in MATCH function combined with the ISERROR function, or by using the newer FILTER function in modern Excel versions. This technique, often called a "list difference" or "VLOOKUP for non-matches," allows you to quickly identify missing data, orphaned records, or discrepancies between two datasets without manually scanning for them.

What You'll Need

  • A computer with Microsoft Excel installed (2016 or later is recommended for the best experience with the FILTER function).
  • Two lists of data. These can be in the same worksheet, different worksheets within the same workbook, or even in different files.
  • A basic understanding of cell references (absolute and relative).

Step-by-Step

The method you choose depends on which version of Excel you are using and how you want the results presented. The most common approach is to use the FILTER function, which creates a dynamic list of all non-matching items.

Method 1: Using the FILTER Function (Excel 365 or Excel 2021+)

This is the most efficient method for modern Excel users as it automatically updates when your source data changes.

  1. Locate the destination cell. Click on the empty cell where you want the list of non-matching values to appear. This is usually at the top of a new column or row.
  2. Enter the formula. Type the following formula into the selected cell:

=FILTER(List1, ISERROR(MATCH(List1, List2, 0)))

  1. Replace the references. Replace List1 and List2 with your actual data ranges. For example, if your primary list is in column A (A2:A100) and your comparison list is in column B (B2:B100), the formula becomes:

=FILTER(A2:A100, ISERROR(MATCH(A2:A100, B2:B100, 0)))

  1. Adjust for headers (optional). If your lists include headers (like "Name" or "ID"), you may want to exclude them from the calculation. To do this, simply adjust the row numbers to exclude the header row. For example, if your data starts at row 2 and goes down to row 500, use A2:A500 and B2:B500.
  2. Press Enter. Pressing Enter will populate the selected cell with all values from List1 that are not found in List2. If there are no non-matching values, Excel will display an error message: #CALC!.
  3. Drag to fill (optional). If you want the results to span multiple columns or rows, select the cell with the formula, click the small square (fill handle) in the bottom-right corner of the cell, and drag it down or across to the desired size.

Method 2: Using the MATCH and ISERROR Functions (All Versions)

This method works in every version of Excel that supports basic formula functions. It is slightly more verbose but produces the same result.

  1. Locate the destination cell. Click on the empty cell where you want the first non-matching value to appear.
  2. Enter the MATCH function. Type the following formula to check if the value in the current row of List1 exists in List2:

=MATCH(List1, List2, 0)

  1. Wrap with ISERROR. The MATCH function returns the position of the match or an error if no match is found. To check for that error, wrap the MATCH function with ISERROR:

=ISERROR(MATCH(List1, List2, 0))

  1. Replace the references. Substitute your actual data ranges. For example:

=ISERROR(MATCH(A2, B$2:B$100, 0))

  1. Drag the formula down. Click the fill handle on the bottom-right corner of the cell and drag it down to apply the formula to the rest of your List1. This will result in a column of TRUE and FALSE values.
  2. Filter the results. Select the header of the column containing the TRUE/FALSE values. Go to the Data tab on the ribbon and click the Filter button (or press Ctrl+Shift+L). A dropdown arrow will appear next to the header.
  3. Select TRUE. Click the dropdown arrow and uncheck "Select All" and then check only the box next to TRUE. This will hide all the FALSE values, revealing only the non-matching items from your original list.

Method 3: Using Conditional Formatting (Visual Only)

If you don't want to see a new list but simply want to visually highlight the values in List1 that are missing from List2, use Conditional Formatting.

  1. Select your list. Click and drag to select the entire range of cells in List1 that you want to check (e.g., A2:A100).
  2. Open Conditional Formatting. Go to the Home tab and click the Conditional Formatting button in the Styles group. Select New Rule...
  3. Select a rule type. In the "New Formatting Rule" dialog box, choose Use a formula to determine which cells to format.
  4. Enter the formula. In the box labeled "Format values where this formula is true," enter the following formula, ensuring your references are correct:

=ISERROR(MATCH(A2, B$2:B$100, 0))

  1. Choose a format. Click the Format... button. Go to the Fill tab and select a color (e.g., red). You can also add a border or change the font color. Click OK to close the format dialog.
  2. Apply the rule. Click OK again to close the "New Formatting Rule" dialog box. The cells in List1 that do not appear in List2 will now be highlighted in your chosen color.

Common Mistakes

  • Incorrect range references. A common error is not using absolute references for the comparison list (List2). If you drag your formula down, the List2 reference will also move, causing errors. Always use the dollar sign ($) to lock the reference, such as B$2:B$100.
  • Non-text data types. If your lists contain numbers, the MATCH function may fail if one list is formatted as text and the other as numbers. It is often best to convert both columns to "Text" format before performing the comparison to ensure consistency.
  • Ignoring case sensitivity. By default, the MATCH function is case-sensitive. This means "Apple" and "apple" will be considered different values. If you want to ignore case, you can use the EXACT function to normalize the data before matching, or simply ensure your data is consistent.
  • Overlooking hidden rows. When using the Filter method, remember that the original data remains in the sheet. If you hide rows, the data is still there. To permanently remove non-matching data, use the Advanced Filter feature in the Data tab, which can extract unique records to a new location.

Tips

  • Dynamic Arrays. If you are using Excel 365, the FILTER function is part of the "Dynamic Arrays" feature. This means you can easily spill the results into adjacent cells. If you see a #CALC! error, it usually means there are no non-matching values, and the formula is trying to return an empty array.
  • Sorting for clarity. After using the FILTER function, the results may appear in a random order. To make the list easier to read, sort the results by their values (A-Z or Z-A).
  • Handling duplicates. If your List1 contains duplicates and you want to see all of them, the FILTER function will list each duplicate. If you want to see only unique non-matching values, you can wrap the FILTER function with the UNIQUE function: =UNIQUE(FILTER(A2:A100, ISERROR(MATCH(A2:A100, B2:B100, 0)))).
  • Using Tables. Converting your data ranges into official Excel Tables (Insert > Table) is a great habit. This makes your formulas dynamic—when you add new data to the table, the formulas automatically expand to include the new rows without needing to update the range references.

Troubleshooting

  • Formula returns #N/A or #VALUE! errors. This is usually caused by mismatched data types. Ensure that both lists contain the same type of data. For example, if one column contains dates and the other contains text representations of dates (like "2023-01-01" vs. Jan 1, 2023), you need to standardize them before comparing. You can do this by adding a helper column that formats both lists to text using the TEXT function.
  • Formula returns #CALC! (Excel 365). This error indicates that the FILTER function did not find any items that met the criteria. This could mean that List1 has no values that do not match List2, or that your formula logic is incorrect. Double-check that your ISERROR function is wrapping the MATCH function correctly.
  • Results are not updating. If your workbook is set to "Manual Calculation," the formulas will not update automatically when you change data. You can switch to "Automatic Calculation" by going to the Formulas tab and clicking the Calculation Options button, selecting Automatic.
  • Formula is too long. If you have very large datasets (thousands of rows), the formula might become difficult to read or manage. In this case, consider using the Advanced Filter feature (Data > Advanced) which is designed specifically for extracting unique records or finding non-matches without using complex formulas.

Frequently Asked Questions

Can I compare two lists in different Excel files?

Yes, but you must open both files. You can reference a cell in another workbook by typing the file name in square brackets before the sheet name, like =[Workbook2.xlsx]Sheet1!$A$2:$A$100. Note that if the other workbook is closed, the formula will return a #REF! error until the workbook is reopened.

Why does the MATCH function return a number if it finds a match?

The MATCH function is designed to find the relative position of an item within a range. If it finds a match, it returns the row number where that item is located. If it does not find a match, it returns the #N/A error.

What is the difference between ISERROR and ISNA?

ISERROR checks for any kind of error value, including #N/A, #VALUE!, #REF!, #DIV/0!, and more. ISNA specifically checks for the #N/A error. Since the MATCH function only returns #N/A when there is no match, you could technically use ISNA instead of ISERROR. However, using ISERROR is more robust as it will catch any unexpected errors in your formula logic.

How do I handle spaces in my data?

Extra spaces can cause a value to appear different even if it looks the same. To fix this, you can use the TRIM function within your formula. For example, change =MATCH(A2, B2:B100, 0) to =MATCH(TRIM(A2), TRIM(B2:B100), 0). This will remove any leading, trailing, or multiple spaces between words.

Can I use this method to find values in List 2 that are not in List 1?

Absolutely. The logic is simply reversed. You would use the FILTER function to extract values from List2 that do not appear in List1. The formula would be =FILTER(List2, ISERROR(MATCH(List2, List1, 0))).

What if my lists are very large and the formula is slow?

For very large datasets (over 100,000 rows), formulas like MATCH and FILTER can be slow to calculate. In this case, it is much more efficient to use the Advanced Filter feature or Power Query. Power Query allows you to merge and filter tables without using formulas, making it significantly faster and more scalable.

Is there a way to count the number of non-matching values?

Yes, you can use the ROWS function combined with FILTER. For example, =ROWS(FILTER(A2:A100, ISERROR(MATCH(A2:A100, B2:B100, 0)))). This will return the count of non-matching values. If there are no non-matching values, it will return 0.