Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
Heads up: Excel and Google Sheets do this differently.
=IFERROR(INDEX(A2:A6,MATCH(0,COUNTIF($C$1:C1,A2:A6),0)),"")=UNIQUE(A2:A6)Computed by a real spreadsheet engine on the sample data below.
| Category | |
| Fruit | |
| Vegetable | |
| Fruit | |
| Dairy | |
| Vegetable |
=IFERROR(INDEX(A2:A6,MATCH(0,COUNTIF($C$1:C1,A2:A6),0)),"")→
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
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.
UNIQUE requires Excel 365 or Excel 2021. On older versions, use the Remove Duplicates tool or an array workaround with COUNTIF and INDEX.
Yes — as long as your source range is large enough or uses a full-column reference (A:A), the UNIQUE result refreshes automatically when data changes.
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-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.
How-toFind values that exist in one list but not the other using COUNTIF to label each item as Matched or Unmatched.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: