How to Compare Columns in Two Different Excel Sheets

There are two ways to “compare columns in two different excel sheets”: the quick way you copy and the durable way you understand. This page gives you both. The exact Excel answer is above with a tool to test it; below, we build the small mental model that makes the fix stick, so the next variation of the same problem solves itself.

Exact answer

In Excel: use =A2=B2 for row-by-row matches, or =COUNTIF($B:$B,A2)>0 to check whether each value in column A appears anywhere in column B.

On this page7
ƒxCompare Two ListsLive
Values in both lists
2

Only in A: 2 · Only in B: 1

=COUNTIF(B:B,A2)>0
=A2=B2
Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

What this does

Comparing columns has two different meanings. Row-by-row comparison asks whether A2 equals B2, A3 equals B3, and so on. List comparison asks whether each value from one column exists anywhere in the other column. The first uses a direct equality test; the second uses COUNTIF, MATCH or XLOOKUP. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. Treat “compare columns in two different excel sheets” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected columns shows up while it is still harmless. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That turns a layout choice that keeps the sheet readable and sortable into a method you can reuse, explain, and defend when the workbook leaves your screen.

A worked example

Column A has invoice IDs from system 1 and column B has IDs from system 2. In C2, =A2=B2 returns TRUE only when the two rows match exactly. If the rows are not aligned, use =COUNTIF($B:$B,A2)>0 in C2; invoice 1042 returns TRUE if it appears anywhere in B, even on a different row. Column comparison is core spreadsheet reconciliation: invoices, IDs, email lists, product codes, migration checks and any workflow where two systems should agree. One habit worth forming early: name the cells that hold your inputs, so the formula reads in plain language instead of a string of cell addresses. A reviewer — or you in three months — can then follow the logic without decoding what B7 and D2 were supposed to mean, which is most of what makes a sheet maintainable.

In Google Sheets

If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. Nothing on this page is behind a login: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. Here is the takeaway for “compare columns in two different excel sheets”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.

Common mistakes

  • Using =A2=B2 when the two lists are sorted differently.
  • Forgetting absolute references in $B:$B, so the lookup range shifts while copying.
  • Treating numbers stored as text as equal to real numbers without cleaning the data.
  • Ignoring leading/trailing spaces; TRIM both columns when matches look visually identical but fail.

Frequently asked questions

How do I compare two columns row by row?

Use =A2=B2 and fill down. TRUE means the values in that row match exactly.

How do I find values in A that are missing from B?

Use =COUNTIF($B:$B,A2)=0 and filter TRUE results.

Can conditional formatting compare columns?

Yes. Use a formula rule such as =$A2<>$B2 for row differences, or COUNTIF for list membership.

Other ways people ask this

On the way here you may have searched this as “how to compare two different excel sheets”, “how to compare two columns in different excel sheets”, “how to compare two columns in two different excel sheets” and “how to compare two columns in different excel workbooks” — it is all the same task, and this page is the single, complete answer to it.

Platform & version notes

  • Several of those searches mention Google Sheets — and the good news is that "compare columns in two different excel sheets" works there almost identically: the formula syntax carries over unchanged, only the surrounding menus sit across the top of the screen instead of in a ribbon.

Can I do this in Google Sheets too?

Yes. "compare columns in two different excel sheets" carries over to Google Sheets with the same formula and almost the same steps — the menus are arranged differently, but the result is identical.

Why do people search for this in so many different ways?

Because the same task has many names. “how to compare two different excel sheets”, “how to compare two columns in different excel sheets”, “how to compare two columns in two different excel sheets” all point at the one operation explained on this page, which is why they all lead here.