Compare Two Excel Lists with VLOOKUP and Return the Differences
A practical review of VLOOKUP for listing unmatched items between two Excel columns: what the formula returns, when it is suitable, and how results behave when copied or shared.
Is this a suitable way to return list differences?
VLOOKUP is a workable in-sheet method when each value in one column should be checked against another column and the unmatched items should appear in a third column. The main benefit is a live comparison: add or edit a row and the difference column recalculates inside the workbook. The decisive tradeoff is that VLOOKUP is a first-match lookup with exact-match turned on, so it reports membership from one direction, folds letter case together, and can treat extra spaces or numbers stored as text as misses. A plain-text snapshot (typed, exported, or pasted as values) is preferable for a one-time share, a printout, a file that should carry labels instead of formula errors, or two short lists that are easier to scan by eye.
- Use a live VLOOKUP column when the two lists will keep changing and you want unmatched items to update without a separate export step.
- Keep the lookup column as the first column of the table range, and set the fourth argument to FALSE or 0 so missing items surface as #N/A rather than a nearby approximate hit.
- Prefer pasted values or a static list when recipients only need the unmatched names, when the workbook will be split apart, or when #N/A would be mistaken for a data problem.
What the formula actually changes
This transformation is a vertical lookup. Excel takes a lookup value, searches top to bottom in the first column of a range you name, and writes into the formula cell either a value from that row or the error #N/A. Letter order, glyph shape, and cell font in the source lists stay as stored. The new content lives in the formula cells: a pulled value, a blank, a label you wrap around the error, or #N/A itself.
List difference work depends on exact match. If the fourth argument is omitted, Excel uses approximate match and can return a neighboring value when the item is absent, which quietly hides a difference. A typical wrapper turns a miss into the original item and a hit into a blank, so the column reads as “items in list A that are absent from list B.” That column covers one direction only. Items that appear only in list B need a second formula that looks the other way.
=IF(ISNA(VLOOKUP(A2,$C$2:$C$100,1,FALSE)),A2,"")
Read that formula as: look for the value of A2 in C2:C100; if the lookup returns #N/A, write A2 (a difference); if it finds a row, write a blank. IFNA can replace IF and ISNA in Excel versions that provide IFNA; both wrappers exist to keep the difference column readable. The lookup still returns only the first equal row. Duplicate keys below that row are ignored.
| Value in list A | Exact VLOOKUP into list B (returns the cell in B) | Difference cell (keep A2 when the lookup is #N/A) |
| apple | #N/A | apple |
| banana | banana | (blank) |
| Banana | banana | (blank) |
The table follows documented exact-match behavior: a missing key becomes #N/A, a hit returns the text stored in the lookup table, and letter case is treated as equal, so Banana matches banana. If the formula cell shows the VLOOKUP result itself, the displayed spelling can follow list B. If the wrapper writes A2 on a miss, the difference column keeps list A’s original spelling. Combining marks and multi-code-point emoji are left in their stored order; they matter only as lookup keys. Whether visually similar Unicode spellings (composed versus decomposed forms, or look-alike characters) count as the same key is unverified here and should be checked on the actual strings in your Excel build.
Readability after copying or sharing
Copying a formula cell copies the formula. Paste values before you move the differences into mail, chat, a plain-text editor, or another app that will not recalculate Excel functions. After paste values, the unmatched items are ordinary text and remain searchable. A difference column that stores blanks for matches will not help a search for items that were found; those still live in the original list.
Sharing the workbook keeps the lookups live. Inserting a column inside the table range, shrinking the range, or sorting only one list can change results on open. Export to CSV typically stores the displayed results of calculated cells, which is the plain-text equivalent when the other person should see names rather than formulas. How a given screen reader announces #N/A, a blank formula result, or a wrapped label was not tested for this review, so an explicit phrase such as Missing from list B is the clearer value to store when the sheet must stay usable with assistive technology or after import into another system.
- Leading or trailing spaces make an otherwise equal name look like a difference.
- A number in one list and numeric text in the other also look like a difference.
- With exact match, the wildcard characters * and ? in a lookup value can match more than one literal name.
- The stored reading order of each source cell is unchanged; this method does not apply mirrored presentation or a special Unicode style font.