You can compare two columns in Excel for matches without any add-in: the fastest check is =A2=B2 filled down, which returns TRUE where the values match and FALSE where they differ. For larger lists or whole columns of different lengths, use COUNTIF or MATCH to detect whether each value appears anywhere in the other list, and use conditional formatting to highlight the hits. All of these work in Excel for Microsoft 365, Excel 2021, 2019 and Excel for Mac; exact button labels can differ slightly by version and region.

What You'll Need

  • Excel on desktop (Windows or Mac) for the full set of formula and formatting tools. Excel for the web supports the formulas below too, but a few formatting options are simpler on desktop.
  • Both sets of data in one workbook. Ideally on separate sheets (for example, List A on one sheet and List B on another) so you can compare without disturbing the originals.
  • A spare empty column next to each list for the results.
  • Clean data: no leading or trailing spaces and no mixed text/number types. This matters far more than people expect, and most "everything is FALSE" complaints come from here.

Step-by-Step

  1. Make a working copy first. Right-click the sheet tab and choose Move or Copy, tick Create a copy, and work there. Formulas and formatting are easy to undo with Ctrl+Z (Cmd+Z on Mac), but sorting can scramble your source data beyond a simple undo.
  2. Decide what a "match" means for your data. Same-row comparison (is A2 the same as B2?) and cross-list comparison (does A2 appear anywhere in column B?) are different questions and need different formulas. Most people who ask about comparing columns actually want the second one.
  3. Line up the lists, or decide not to. If the rows correspond to the same item, sort both columns the same way (or leave both sorted by an ID/key column). If they do not correspond, skip sorting entirely and use a lookup-style formula, because sorting one list and not the other will produce meaningless same-row results.
  4. Do the simple same-row test. In C2 type =A2=B2 and press Enter, then fill down by double-clicking the small square at the bottom-right of the cell. You get TRUE or FALSE. For a friendlier output use =IF(A2=B2,"Match","No match"). Note that this test is case-insensitive and considers the values 10 (number) and "10" (text) as different.
  5. Use COUNTIF for cross-list matching. Put this in C2 and fill down: =IF(COUNTIF(Sheet2!$B$2:$B$500,A2)>0,"In list B","Not in list B"). This tells you whether each value from column A exists anywhere in column B, regardless of row order. To catch duplicates as well, use =COUNTIF(Sheet2!$B$2:$B$500,A2) to see how many times each value occurs.
  6. Or use MATCH for the position. =IFERROR(MATCH(A2,Sheet2!$B$2:$B$500,0),"Not found") returns the row number where the value sits in list B, or "Not found". The final 0 means exact match, which is what you almost always want. Without it, MATCH assumes an approximate, sorted match and produces wrong answers.
  7. Lock the ranges with dollar signs. This is the step people skip. Ranges that are not locked with $ shift as you fill the formula down, and the comparisons drift out of alignment partway down the list.
  8. Highlight matches visually instead of reading the results column. Select the range you want to colour (for example A2:A200), then go to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format. Enter =COUNTIF($B$2:$B$500,$A2)>0 and choose a fill colour. Note whether the rows in your range are absolute ($B$2) and the row-part relative ($A2) so Excel evaluates each row separately.
  9. Add a second rule for the misses. Repeat the conditional formatting step with the same formula and =0 instead of >0, using a different colour. Now each cell is either green (found) or red (missing), which is usually easier to scan than a column of text.
  10. Filter and count. Turn on a filter on the results column (Data > Filter), then filter for "Not found" to see exactly what is missing, or filter for "In list B" to see matches. Use =COUNTIF(C2:C200,"Not found") for a running total of mismatches.
  11. Clean up before you trust the result. Run Data > Text to Columns on each column if numbers are left-aligned and text right-aligned, and use Find & Replace to remove stray spaces (replace a single space with nothing, alongside TRIM for leading/trailing spaces).
  12. Convert formulas to values when you are done. Select the results column, copy, then Paste Special > Values. This freezes the answers so later edits to list B do not silently change your audit trail.

Common Mistakes

  • Comparing unsorted lists and expecting sensible rows. Use COUNTIF or MATCH for cross-list checks instead of the simple =A2=B2 test when the order does not match.
  • Invisible spaces and non-breaking spaces. Values that look identical can have a trailing space. TRIM removes ordinary spaces; CLEAN handles stray non-printing characters.
  • Text stored as numbers. This is the classic culprit for a column of FALSE results. =A2=B2 treats 10 and "10" as different, so convert consistently first.
  • Case sensitivity. =A2=B2 and COUNTIF both ignore case. If case matters, use the EXACT function, e.g. =EXACT(A2,B2).
  • Forgetting the exact-match argument. MATCH without 0 returns approximate results and misses real matches.
  • Highlighting errors instead of blanks. If result cells show #N/A, wrap formulas in IFERROR or IFNA so real mismatches are not buried in errors.
  • Comparing entire columns. Whole-column references like B:B work but can slow down large workbooks. Use a bounded range such as $B$2:$B$5000.

Tips

  • Give each list a header and use Format as Table (Ctrl+T).
  • Use a helper column concatenating two fields (e.g. first and last name) with an ampersand, then compare that combined key instead of comparing two columns individually.
  • XLOOKUP, available in current Excel, does the same lookup job with simpler syntax: =XLOOKUP(A2,Sheet2!$B$2:$B$500,Sheet2!$C$2:$C$500,"Not found").
  • Colour is not data. Do not rely on highlighting alone for a report; keep the results column so the finding can be filtered, counted and exported.
  • If both lists are short, copy one underneath the other in the same column and use conditional formatting with =COUNTIF($A$2:$A$20,$A2)>1 to spot duplicates in one pass.

Troubleshooting

Everything returns FALSE. Check for leading spaces, mixed number/text formats and hidden apostrophes. Try TRIM and the VALUE function to normalise the data.

Formulas show as text. The cell is probably formatted as Text. Change it to General, then press F2 and Enter to re-enter, or use Home > General format and re-enter the formula.

Results shift as you fill down. The lookup range was not locked. Add $ signs to the range, leaving the lookup cell relative.

Some matches are missed that you can see. Check for homoglyphs and unusual characters (for example smart quotes versus straight quotes) using LEN to compare character counts of two supposedly identical strings.

Spill errors such as #SPILL. An array formula has no free space below or to the right. Clear the adjacent cells or reduce the range.

Conditional formatting does not activate. Confirm the formula returns TRUE/FALSE and that the row references match the first cell of the selected range.

Frequently Asked Questions

How do I compare two columns for matches only, without showing differences?

Use conditional formatting with =COUNTIF($B$2:$B$500,$A2)>0 on column A so matching cells are highlighted and everything else stays unformatted. Alternatively, filter the results column to show only matches.

Can I compare two lists in different workbooks?

Yes. Reference the other workbook in the formula, but it works reliably only when that workbook is open; otherwise Excel stores the full path and returns #REF! if the file moves or is renamed.

How do I find values that appear in both columns?

Use COUNTIF against each column from the other, then filter both result columns for values greater than zero. In Excel for Microsoft 365, you can select both columns and use Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values, which highlights entries appearing more than once.

Is comparing columns case-sensitive?

No, by default. Use EXACT for a case-sensitive comparison of two cells.

Why does a value that exists still show as not found?

Almost always a formatting difference: a trailing space, a number stored as text, or a non-breaking space pasted from a web page. Clean both lists with TRIM and CLEAN, then re-check.

What is the quickest way to compare two whole lists at once?

Put the shorter formula in a results column beside one list, fill it down, then filter. That is faster and more reliable than sorting both lists and eyeballing them side by side.