Excel – Unique Function

< 1 min read

Overview #

The UNIQUE function returns a list of distinct values from a range. When combined with FILTER, you can apply multiple criteria, including OR conditions, to create dynamic lists

Example Scenario #

Here is a table of example data,

 ABC
1ItemOwnersStatus
2Item 1AnnPublished
3Item 2BobPublished
4Item 3MathewPublished
5Item 4AnnAvailable
6Item 5BobDiscontinued
 

Using UNIQUE to Get a List of Owners #

The UNIQUE function returns a list of unique values from a range or array.

=UNIQUE(B2:B6)

This would return back a list of unique ‘owners’. The result will be:

Ann, Bob, Mathew

Combining FILTER and UNIQUE #

You have a list of items with columns for Owner and Status. You want a unique list of product names where:
  • Owner= “Ann”
  • Status = “Available” OR “Discontinued”

 

=UNIQUE(FILTER(A2:C6,(B2:B6="Ann")*((C2:C6="Available")+(C2:C6="Discontinued"))))
This image show a table of data having the =unique function applied, with a filter to show only Ann's discontinued and available items.

How it works #

  • FILTER selects rows where:
    • Column B (Owners) = “Ann” AND
    • Column C (Status) = “Available” OR “Discontinued“.
  • OR logic is expressed by adding Boolean expressions: (C2:C20="Available") + (C2:C20="Discontinued").
  • UNIQUE removes duplicates from the filtered list.
  • "" ensures the formula returns a blank instead of an error if no matches are found.

Was this article helpful?
Updated on January 12, 2026