In Excel: use =UNIQUE(array) — a dynamic-array function that returns a distinct list from a range and spills the result down or across automatically. Function availability: UNIQUE: Excel 2021+. These are Microsoft's version markers; earlier perpetual releases do not include these functions. Check the actual product and update channel before using the formula. A marker does not establish an identical Web/Mac workflow or Google Sheets support.
On this page8
Syntax
Arguments
| Argument | required / optional | Description |
|---|---|---|
array | required | The range or array to extract distinct values from. |
by_col | optional | FALSE or omitted compares and returns rows; TRUE compares and returns columns. |
exactly_once | optional | TRUE returns only items that appear exactly once; FALSE or omitted returns one of each distinct item. |
Related functions
Function availability: UNIQUE: Excel 2021+. These are Microsoft's version markers; earlier perpetual releases do not include these functions. Check the actual product and update channel before using the formula. A marker does not establish an identical Web/Mac workflow or Google Sheets support.
Click an empty cell with several blank cells beneath it to give the result room to spill.
Type =UNIQUE( and select the column or range that contains the repeating values.
Close the bracket and press Enter; the distinct values spill down automatically.
To dedupe across columns instead of down rows, add TRUE as the second argument.
To keep only one-off values, add =UNIQUE(range, FALSE, TRUE); wrap in SORT to order the list.
What this does
UNIQUE is a dynamic-array function in Excel 365 and Excel 2021 that returns the distinct values from a range, spilling the live result into the cells below. Unlike the Remove Duplicates data tool — a one-off action that permanently edits your data — UNIQUE is a formula that recalculates whenever the source changes, so a dropdown or report stays current. The optional by_col switches it to compare columns instead of rows, and exactly_once returns only the items that occur a single time. Because it spills, it needs empty cells below; if something blocks the spill it returns a #SPILL! error. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “filter unique values excel”. Start on a copy or a tiny sample, keep the affected filter visible, and compare the result with the outcome you expected before you touch the real workbook. 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. The point is a data step that keeps your analysis trustworthy, but the practical win is that someone else can open the file and understand what happened without asking you.
A worked example
Region names with repeats sit in A2:A100. =UNIQUE(A2:A100) spills a clean list of each region once — say West, East, North, South — into the cells below the formula. To list only regions that appear exactly once, add the third argument: =UNIQUE(A2:A100, FALSE, TRUE). To sort the distinct list, wrap it: =SORT(UNIQUE(A2:A100)). UNIQUE is the modern way to build live distinct lists — for dashboards, dropdowns and summaries — because it updates automatically and, unlike Remove Duplicates, never alters the underlying data. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.
In Google Sheets
Function availability: UNIQUE: Excel 2021+. These are Microsoft's version markers; earlier perpetual releases do not include these functions. Check the actual product and update channel before using the formula. A marker does not establish an identical Web/Mac workflow or Google Sheets support. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. For “filter unique values excel”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.
Common mistakes
- Placing the formula where cells below are occupied, which blocks the spill and returns a
#SPILL!error — clear the range underneath. - Confusing
UNIQUEwith Remove Duplicates — Remove Duplicates is a one-off tool that deletes data, whileUNIQUEis a live formula that leaves the source intact. - Using
UNIQUEin Excel 2019 or earlier, where it does not exist and returns#NAME?; fall back to Remove Duplicates or an advanced filter there.
Frequently asked questions
What is the difference between UNIQUE and Remove Duplicates?
UNIQUE is a formula that spills a live distinct list and updates when the source changes, leaving your data untouched. Remove Duplicates is a one-off button on the Data tab that permanently deletes the duplicate rows from the data itself.
Why does UNIQUE return a #SPILL! error?
Something is occupying the cells where the result needs to spill. Clear or move the contents below the formula so the distinct list has room, and the spill resolves.
How do I get a sorted list of unique values?
Wrap UNIQUE in SORT: =SORT(UNIQUE(A2:A100)) returns the distinct values in ascending order, perfect for a tidy dropdown source.
Which Excel release does this formula require?
Function availability: UNIQUE: Excel 2021+. These are Microsoft's version markers; earlier perpetual releases do not include these functions. Check the actual product and update channel before using the formula. A marker does not establish an identical Web/Mac workflow or Google Sheets support.
Other ways people ask this
On the way here you may have searched this as “ms excel filter unique values”, “how to filter unique values in excel” and “filter excel for unique values” — it is all the same task, and this page is the single, complete answer to it.
Why do people search for this in so many different ways?
Because the same task has many names. “ms excel filter unique values”, “how to filter unique values in excel”, “filter excel for unique values” all point at the one operation explained on this page, which is why they all lead here.