FormulaCraft

How to find missing values between two lists in Excel and Google Sheets

Topic:Duplicates & uniqueness
Excel & Google Sheets
=IF(COUNTIF($B$2:$B$6,A2)=0,"Missing from B","")

Verified example

Computed by a real spreadsheet engine on the sample data below.

List AList BMissing?
AppleBanana
BananaCherry
CherryApple
DateFig
ElderberryBanana

=IF(COUNTIF($B$2:$B$6,A2)=0,"Missing from B","")

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1In a helper column beside List A, enter =IF(COUNTIF($B$2:$B$6,A2)=0,"Missing from B","") — a non-empty result flags items absent from List B.
  2. 2Copy down all rows to check every item.
  3. 3To also find what's in B but not in A, add another helper column beside List B: =IF(COUNTIF($A$2:$A$6,B2)=0,"Missing from A","").

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

How do I count the total number of missing items?

Use SUMPRODUCT: =SUMPRODUCT((COUNTIF(B2:B6,A2:A6)=0)*1) — counts items in A with zero matches in B.

Does this work if the lists are on different sheets?

Yes — reference the other sheet in the COUNTIF range: =IF(COUNTIF(Sheet2!$A$2:$A$6,A2)=0,"Missing","").

More on Duplicates & uniqueness

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: