Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=IF(COUNTIF($B$2:$B$6,A2)=0,"Missing from B","")Computed by a real spreadsheet engine on the sample data below.
| List A | List B | Missing? |
| Apple | Banana | |
| Banana | Cherry | |
| Cherry | Apple | |
| Date | Fig | |
| Elderberry | Banana |
=IF(COUNTIF($B$2:$B$6,A2)=0,"Missing from B","")→
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.
Use SUMPRODUCT: =SUMPRODUCT((COUNTIF(B2:B6,A2:A6)=0)*1) — counts items in A with zero matches in B.
Yes — reference the other sheet in the COUNTIF range: =IF(COUNTIF(Sheet2!$A$2:$A$6,A2)=0,"Missing","").
Remove duplicate values with one formula using UNIQUE, or strip them in place with the built-in tool. Works in Excel 365 and Google Sheets.
How-toCheck whether two columns match row by row, or find values in one column missing from another, using IF and COUNTIF.
How-toExtract a sorted, deduplicated list from a column using SORT+UNIQUE in modern Excel and Google Sheets, or array formulas in older versions.
How-toLearn when to use the UNIQUE formula versus the Remove Duplicates tool in Excel and Google Sheets to eliminate or surface distinct values.
How-toUse COUNTIF to flag duplicate values in a list with a simple formula that marks any entry appearing more than once.
How-toIdentify which values appear more than once in a list using COUNTIF to add a Duplicate/Unique label to each row.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: