Excel Unique List From Range: Step-by-Step Guide
In this article
To get a unique list from a range in Excel, the fastest reliable method is to select your data, go to Data > Sort & Filter > Advanced, choose Copy to another location, tick Unique records only, and point the Copy to box at an empty cell. On Microsoft 365 you can instead type =UNIQUE(A2:A100) in an empty cell and press Enter; the list spills automatically and updates when the source data changes. Both routes give you a clean list with no duplicates, and which one you use depends on your Excel version and whether you want a live formula or a one-time copy.
What You'll Need
- A version of Excel that supports what you are trying to do. The
UNIQUEfunction requires Microsoft 365 or Excel 2021 and later. The Advanced Filter method works in every desktop version, including Excel 2016 and 2019. - Your source data in a single column (or a rectangular block of columns) with a header row, ideally with no entirely blank rows inside the range.
- An empty area of the worksheet, or a second sheet, to receive the output. The formula version needs empty cells below it so the results can spill.
- Note that menu labels and dialog wording can differ slightly between Excel versions, platforms and regions. The steps below describe the Windows desktop app; the Mac version has the same commands under the same Data tab.
Step-by-Step
Method 1: The UNIQUE function (Microsoft 365 and Excel 2021+)
- Click an empty cell where you want the list to start, for example
D2. Make sure the cells below it and to the right are empty. - Type
=UNIQUE(and then select your source range, or type it directly, for exampleA2:A200. Close the bracket so the formula reads=UNIQUE(A2:A200). - Press Enter. Excel returns the distinct values from the range and spills them down the column. A thin blue border shows the spill area.
- If your source range includes a header, either start the range below the header (
A2:A200) or add the third argument to keep the header:=UNIQUE(A1:A200,,TRUE). The second argument is normally left blank, and the third set to TRUE means "compare by row and treat the first row as a header." - To pull unique rows from multiple columns instead of a single column, select the whole block, for example
=UNIQUE(A2:C200). Excel returns each distinct combination of values across those columns. - Leave the formula in place. When you add or edit values in the source range, the unique list recalculates on its own.
Method 2: Advanced Filter (all desktop versions)
- Select the full range you want to de-duplicate, including the header row, for example
A1:A200. - Go to the Data tab and click Advanced in the Sort & Filter group.
- In the Advanced Filter dialog, choose Copy to another location. This keeps your original data untouched.
- Check that the List range box shows your selection. In the Copy to box, click the cell where the output should start, such as
D1. - Tick Unique records only, then click OK. Excel pastes a de-duplicated copy of the list starting at the cell you chose.
- Remember this is a snapshot. If the source data changes later, repeat the filter to refresh the output, or switch to the UNIQUE function if your version supports it.
Method 3: Remove Duplicates (when you want to edit in place)
- Copy your source column and paste it somewhere safe, or work on a copy of the sheet. This method deletes rows permanently.
- Select the pasted range, including the header.
- Go to Data > Remove Duplicates.
- Confirm the column is ticked and that "My data has headers" is set correctly, then click OK. Excel reports how many duplicates were removed and how many unique values remain.
Common Mistakes
- Blocking the spill. The UNIQUE formula returns a #SPILL! error if any cell in the area it needs is not empty. Clear the cells below and to the right of the formula.
- Trailing spaces. "Apple" and "Apple " look identical but are treated as different values. Clean the source with
=TRIM()or Find & Replace (replace a space with nothing) if your count looks too high. - Case sensitivity confusion. UNIQUE treats "apple" and "Apple" as the same value by default. If you need case-sensitive results, that requires a different approach, such as a helper column using
=EXACT(). - Including the header in the range without telling Excel. The header text then appears as a value in the output list.
- Forgetting that Advanced Filter is a one-time copy. People edit the source and wonder why the output did not update.
- Running Remove Duplicates on the original data. There is no undo for the rows it deletes once the file is saved, so always work on a copy.
Tips
- Convert your source range to an Excel Table (select it and press Ctrl+T). Then you can write and the formula grows automatically as rows are added.
- Sort the result with
=SORT(UNIQUE(A2:A200))to get an alphabetical list in one formula. - Count how many unique values exist with
=COUNTA(UNIQUE(A2:A200)), or use=ROWS(UNIQUE(A2:A200))if you want to count distinct rows. - Wrap the formula in
IFERRORif the range may be empty, so you get a blank instead of an error. - For a quick visual check without formulas, select the column and look at the status bar at the bottom of the window; it shows a count of selected cells, which you can compare against a unique count.
Troubleshooting
- #NAME? error. Your Excel version does not recognise UNIQUE. Use Advanced Filter or Remove Duplicates instead, or check that you are on Microsoft 365 or Excel 2021+.
- #SPILL! error. Something is in the way. Select the formula cell, and Excel outlines the blocked area; clear those cells and the list appears.
- The formula returns only one value. You may have entered it as a legacy array formula or the range is a single cell. Re-enter it normally and confirm the range covers all your data.
- Duplicates still appear. Check for hidden spaces, non-printing characters, or numbers stored as text versus real numbers. A quick test is to sort the output and look for near-identical entries.
- Advanced Filter says the range is invalid. Make sure the List range and Copy to range are on the same sheet unless you are using named ranges, and that the Copy to cell is a single cell reference, not a range.
- If that did not work, close and reopen the workbook, confirm the file is saved in a modern format (.xlsx rather than .xls), and try the method on a small test range to isolate whether the issue is the data or the formula.
Frequently Asked Questions
Does the UNIQUE function work in Excel 2019?
No. UNIQUE is part of the dynamic array functions introduced with Microsoft 365 and included in Excel 2021. In Excel 2019 and earlier, use Advanced Filter with Unique records only, or Remove Duplicates on a copy of the data.
Will the unique list update automatically when I add data?
Yes, if you used the UNIQUE formula and the source range covers the new rows, or if you referenced an Excel Table. The Advanced Filter output is a static copy and must be re-run.
How do I get a unique list from two columns combined?
Select both columns as the range, for example =UNIQUE(A2:B200). Excel returns each distinct pair of values, not a merged single column. To merge first, combine the values in a helper column with =A2&" "&B2 and run UNIQUE on that column.
Why does UNIQUE treat "Apple" and "apple" as the same?
By default the function is not case-sensitive. That is usually what you want for names and categories. Case-sensitive de-duplication needs a helper column using EXACT and is more involved.
Can I get a unique list without formulas or filters?
You can use a PivotTable: insert one with your column in the Rows area, and it shows each distinct value once. It refreshes when you right-click and choose Refresh, so it is a middle ground between a formula and a static copy.
Does this work the same on Excel for Mac?
The Data tab commands and the UNIQUE function are available in the Mac desktop app with the same names, though the dialog layout may look slightly different. Excel for the web supports UNIQUE as well.